Hi,
I tried searching for this answer but I'm not even sure what to look for. I'll do my best to explain.
I'm trying to create a query in Access. I have multiple WHERE conditions and depending on which WHERE condition returns true I want to return data froma specific column in the table.
My database has columns named Date1, Time1, Option1, Date2, Time2, Option2, Date3, Time3, Option3, etc..
What I have so far:
SELECT columnname
FROM Table
WHERE Date1 = [@date] OR Date2 = [@date] OR Date3 = [@date]
Now how do I have it return only the corresponding Time and Option column without returning them all.
I guess I have to use some kind of IF satement but I don't have a clue as to the syntax.
Thanks