G
Guest
I have a data entry form that records empl_no, gross_amt and startdate and
end date. I am trying to alert my users if they have already entered a record
for a giving date. If the employee only worked 1 day they only have a start
date otherwise they have a start and an end date. I am using simple dlookup
to check each record against a history file. My lookup works when the start
date matches or when the start and end dates match exactly but not if the
date falls in the range between the start and end dates.
Example - Employee 12345 has a record in the history file with start date
11/1/04 and an end date 11/5/04. If I enter a new record with 11/1/04 as
start date - I get my message box. If I enter a new record with 11/1/04 as
start and 11/5/04 as end - I get my message box. But if I enter a date like
11/3/04 - nothing.
How can I make it check if my new date or range of dates falls within the
history range of dates?
TIA
end date. I am trying to alert my users if they have already entered a record
for a giving date. If the employee only worked 1 day they only have a start
date otherwise they have a start and an end date. I am using simple dlookup
to check each record against a history file. My lookup works when the start
date matches or when the start and end dates match exactly but not if the
date falls in the range between the start and end dates.
Example - Employee 12345 has a record in the history file with start date
11/1/04 and an end date 11/5/04. If I enter a new record with 11/1/04 as
start date - I get my message box. If I enter a new record with 11/1/04 as
start and 11/5/04 as end - I get my message box. But if I enter a date like
11/3/04 - nothing.
How can I make it check if my new date or range of dates falls within the
history range of dates?
TIA