I'm not using SQL at this point, I'm just trying to define a function using query design function in MS Access 2010.
What i'm trying to do: So turns out that I have a 5 month spread (Jan,Feb..May) where each month is a column. Turns out that at times May has a value and January does not, but it should. All the values are either one or null.
What I'm trying to do is write an if function of this sort:
Jan15new: Iff([May-15]=1,[Jan-15]=1,[Jan-15])
However, when I run the query with this iff function I got a column full of negative ones that doesn't abide by the rules of this if function.
If you can shed somelight that would be great! thanks,
Truein Access and Visual Basic is-1(in other words, all bits are set). This is in contrast to most other languages (C-derived languages, for example) and database systems (SQL Server, for example), where it is1.