snicker
Registered User.
- Local time
- Today, 15:40
- Joined
- Aug 8, 2003
- Messages
- 91
I would like to check two different fields in a record. If both fields are a match I would like to run an update query. If either field is not a match I would like to run an append query. Example:
On update of a form control I would like to check the [ApDate] field for a specific date (say 10/10/2003) and the [Aptime] field for a specific time (say 8:00 AM).
If these 2 fields are in one record I want to update this record.
If these 2 fields are not in one record I want to append a new record.
I would like to do this with macros (Im not very good with VB). I thought maybe I could use DLookUp() But I dont know how to check for the second criteria. I have the Queries written I just need help on Checking the two criteria (the [ApDate] and [ApTime] fields). Any sugestions?
On update of a form control I would like to check the [ApDate] field for a specific date (say 10/10/2003) and the [Aptime] field for a specific time (say 8:00 AM).
If these 2 fields are in one record I want to update this record.
If these 2 fields are not in one record I want to append a new record.
I would like to do this with macros (Im not very good with VB). I thought maybe I could use DLookUp() But I dont know how to check for the second criteria. I have the Queries written I just need help on Checking the two criteria (the [ApDate] and [ApTime] fields). Any sugestions?
Last edited: