J
Jim
I have a database that we use to monitor access to a room
and would like to notify the data entry users when they
enter a person's name if they they have previously been
entered into the system that day.
I've created a duplicate records query that searches
today's date and the personindex to return records that
have these two fields identical. However I am having
trouble getting this query to work on the data entry
form. The date is inserted using the Date() function when
a new record is created, and I have combo box that lists
the authorized persons. I would like a message to pop up
when the user selects a staff name that has previously
been entered into the system on that day.
I've tried using the IIf function on the AfterUpdate event
on the combo box to run the duplicate record query using
the staffindex from the form and if it is NOT null to
display a text box. Unfortunately, this has not worked.
Any help is greatly appreciated.
Thanks.
and would like to notify the data entry users when they
enter a person's name if they they have previously been
entered into the system that day.
I've created a duplicate records query that searches
today's date and the personindex to return records that
have these two fields identical. However I am having
trouble getting this query to work on the data entry
form. The date is inserted using the Date() function when
a new record is created, and I have combo box that lists
the authorized persons. I would like a message to pop up
when the user selects a staff name that has previously
been entered into the system on that day.
I've tried using the IIf function on the AfterUpdate event
on the combo box to run the duplicate record query using
the staffindex from the form and if it is NOT null to
display a text box. Unfortunately, this has not worked.
Any help is greatly appreciated.
Thanks.