Ketonekevin
New member
- Local time
- Today, 00:22
- Joined
- Mar 21, 2009
- Messages
- 2
Hello all,
I have a simple table as follows:
Field 1 - Name - text field
Field 2 - Date - Date/time field
Field 3 - Hours Worked - Number field
Now what I would like to do with a query is this. Look at each record, if there is no record for the same name for yesterday, then place the value of 1 in a new field. If there is no record for the same name for tomorrow, then place the value 1 in the new field. If there is a record for the same name both yesterday and tomorrow, then place the value of 2 in the new field.
I work at a facility where it is a week on/week off schedule. Each day a person is to have 2 documented contacts with their supervisor. If its the first day or last day of their week at work, they only work partial days so the number of contacts needs to be just 1. I am trying to write a query that will use this logic to automatically place the number of contacts required in the fourth field of the table.
Thanks in advance for the assistance...any help is appreciated!!!
I have a simple table as follows:
Field 1 - Name - text field
Field 2 - Date - Date/time field
Field 3 - Hours Worked - Number field
Now what I would like to do with a query is this. Look at each record, if there is no record for the same name for yesterday, then place the value of 1 in a new field. If there is no record for the same name for tomorrow, then place the value 1 in the new field. If there is a record for the same name both yesterday and tomorrow, then place the value of 2 in the new field.
I work at a facility where it is a week on/week off schedule. Each day a person is to have 2 documented contacts with their supervisor. If its the first day or last day of their week at work, they only work partial days so the number of contacts needs to be just 1. I am trying to write a query that will use this logic to automatically place the number of contacts required in the fourth field of the table.
Thanks in advance for the assistance...any help is appreciated!!!