G
Guest
I am trying to write a query that will prompt the user for a date then match
the entered date to one of three dates in a table and then return the date
and other info from a table. I initialy wrote a Switch query as follows-
Date:Switch([Enter Date]=[Date1],[Date1],[Enter Date]=[Date2],[Date2],[Enter
Date]=[Date3],[Date3]) which I thought was fine until I realised that if
there are same dates in date 1 to 3 then you will only ever return date 1. I
know you could break it down into different fields and columns but is there a
way to return Dates 1 to 3 in the same column but different rows? I want to
keep them all in the same column so I can then base my report on it and I can
then just pull the one field.
I am using Access 2000.
Hope that makes some sense: any advice would be much appreciated.
the entered date to one of three dates in a table and then return the date
and other info from a table. I initialy wrote a Switch query as follows-
Date:Switch([Enter Date]=[Date1],[Date1],[Enter Date]=[Date2],[Date2],[Enter
Date]=[Date3],[Date3]) which I thought was fine until I realised that if
there are same dates in date 1 to 3 then you will only ever return date 1. I
know you could break it down into different fields and columns but is there a
way to return Dates 1 to 3 in the same column but different rows? I want to
keep them all in the same column so I can then base my report on it and I can
then just pull the one field.
I am using Access 2000.
Hope that makes some sense: any advice would be much appreciated.