S
Steve Muir
Hi all
I need to update a combo box numeric field called "year" in a table called
tblRegionN1. This gets it data from tblYear which just conains the numeric
values 1,2,3,4 and 5. I need to query a date field called "Last Maintained
Date" as follows:
If "Last Maintained Date" is between 01/01/01 and 31/12/01 then "year"
equals 1, If "Last Maintained Date" is between 01/01/02 ad 31/12/02 then
"year" equals 2 etc etc.
I wrote a query to find all year 1 as follows:
Field: Last Maintained Date
Table: tblRegionN1
Criteria: Between #01/01/01# And #31/12/01#
This returned all the correct records, but I do not know how to add to this
query to make it update the "year" field.
Any help greatly appreciated.
I need to update a combo box numeric field called "year" in a table called
tblRegionN1. This gets it data from tblYear which just conains the numeric
values 1,2,3,4 and 5. I need to query a date field called "Last Maintained
Date" as follows:
If "Last Maintained Date" is between 01/01/01 and 31/12/01 then "year"
equals 1, If "Last Maintained Date" is between 01/01/02 ad 31/12/02 then
"year" equals 2 etc etc.
I wrote a query to find all year 1 as follows:
Field: Last Maintained Date
Table: tblRegionN1
Criteria: Between #01/01/01# And #31/12/01#
This returned all the correct records, but I do not know how to add to this
query to make it update the "year" field.
Any help greatly appreciated.