E
Ed Coleman
Access 2000
W2K
I have a DB that has approx 20 fields with over 6000 records. I have added
a new field called "Shift", which is based on the time of day an event
happened.
All new records added to the DB are being entered with the "Shift" field
completed. The problem is, there are over 6000 records that do not have a
value entered into the "Shift" field.
The field to update is either a 1, 2, or 3.. The field used to base the
update on is Date/Time in the form "10/13/2004 12:39:51 AM."
The "Shift" field will be updated accordingly:
"Date" field is between 11:30:00 PM and 7:29:59 AM then "Shift" = 1
"Date" field is between 7:30:00 AM and 3:29:59 PM then "Shift" = 2
"Date" field is between 3:30:00 PM and 11:29:59 PM then "Shift" = 3.
The "problem" is getting an update query to find all dates with only the
timeframe wanted.
Is this the way to go or should I try some other way???? Any ideas????
TIA
ed
W2K
I have a DB that has approx 20 fields with over 6000 records. I have added
a new field called "Shift", which is based on the time of day an event
happened.
All new records added to the DB are being entered with the "Shift" field
completed. The problem is, there are over 6000 records that do not have a
value entered into the "Shift" field.
The field to update is either a 1, 2, or 3.. The field used to base the
update on is Date/Time in the form "10/13/2004 12:39:51 AM."
The "Shift" field will be updated accordingly:
"Date" field is between 11:30:00 PM and 7:29:59 AM then "Shift" = 1
"Date" field is between 7:30:00 AM and 3:29:59 PM then "Shift" = 2
"Date" field is between 3:30:00 PM and 11:29:59 PM then "Shift" = 3.
The "problem" is getting an update query to find all dates with only the
timeframe wanted.
Is this the way to go or should I try some other way???? Any ideas????
TIA
ed