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,
This formula returns a 1 if May-15 = 1, otherwise returns whatever value is in Jan-15: