C
cathyt
Hi Everyone,
I’m creating a database that has a table called History. History contains 7
fields; ID, Year, Schedule, Hold, LType, Painted, Approved. The Year field
is a combo box with the following values: Every, Even, Odd, Varies, No. The
rest of the fields don’t matter for this query (except ID).
I’ve been trying to create a query that will return the results in the Year
field based on the current year. For example 2010 is an “Even†year, so it
would return those records, as well as “Every†and “Variesâ€. If possible I
don’t want to have to go into the query next year and change anything to
reflect 2011 and “Oddâ€.
I’m starting to think I need to convert those values to numbers and create a
query based on that. Does that sound right or is there another way to
accomplish it? Maybe an IIF statement using numbers/values? Not really sure
here.
Thanks for the help!
Cathy
I’m creating a database that has a table called History. History contains 7
fields; ID, Year, Schedule, Hold, LType, Painted, Approved. The Year field
is a combo box with the following values: Every, Even, Odd, Varies, No. The
rest of the fields don’t matter for this query (except ID).
I’ve been trying to create a query that will return the results in the Year
field based on the current year. For example 2010 is an “Even†year, so it
would return those records, as well as “Every†and “Variesâ€. If possible I
don’t want to have to go into the query next year and change anything to
reflect 2011 and “Oddâ€.
I’m starting to think I need to convert those values to numbers and create a
query based on that. Does that sound right or is there another way to
accomplish it? Maybe an IIF statement using numbers/values? Not really sure
here.
Thanks for the help!
Cathy