G
Guest
I have a form set up to enter data into a table. (the table is named
Monolith, and the form is (unfortunately) named "Another try at
entering/editing data by day")
The table stores customer counts in different areas of the casino, so the
primary key is spread across 2 fields: Date and Time. (time is limited to 12
values - even numbered hours)
The first two fields on the form are Date and Time (time is a drop-down
list).
What I would like to do is check for a primary key violation (duplicate
values) before the user starts entering the actual count data. Ideally, this
would pop up a form allowing the user to chose between changing the Date/Time
values or Opening up a form to edit the data for that specific date and time.
I'm assuming, I need to write an event procedure for "AfterUpdate" on the
Time field, checking for duplicate values, but I'm not sure how to do this
with a Multiple-Field Primary Key.
Suggestions?
Aaron
Monolith, and the form is (unfortunately) named "Another try at
entering/editing data by day")
The table stores customer counts in different areas of the casino, so the
primary key is spread across 2 fields: Date and Time. (time is limited to 12
values - even numbered hours)
The first two fields on the form are Date and Time (time is a drop-down
list).
What I would like to do is check for a primary key violation (duplicate
values) before the user starts entering the actual count data. Ideally, this
would pop up a form allowing the user to chose between changing the Date/Time
values or Opening up a form to edit the data for that specific date and time.
I'm assuming, I need to write an event procedure for "AfterUpdate" on the
Time field, checking for duplicate values, but I'm not sure how to do this
with a Multiple-Field Primary Key.
Suggestions?
Aaron