H
Hank
My append query is run from a command button on a form. The purpose of the append query is to post attendance on a table. Unique key values are used to prohibit using the attendancedate for the same employeeID.
If someone ties to use a date that has already been posted the following message appears:
"Microsoft Access can't append all the records in the append query""Microsoft Access set 0 field(s) to Null due to a type conversion failure, and it didn't add <number> record(s) to the table due to key violations, 0 record(s) due to lock violations, and 0 record(s) due to validation rule violations."
"Do you want to run the action query anyway?"
To just ignore the error and run the query anyway click 'Yes'. Or, for an explanation of the causes and a description of the violations click 'Help'.
Everything is fine as long as the user does not click "YES" - then double attendance records are added to the table.
How can I get rid of this message and/or PROHIBIT choosing the "YES" answer?
Most of the answers I have seen show how to disable the warnings, but do not show how to prohibit the append query from double posting.
Rather than the pop up warning, I would like a message box to pop up saying: " ATTENDANCE RECORDS FOR THIS DATE HAVE BEEN POSTED"
Thanks
Hank
If someone ties to use a date that has already been posted the following message appears:
"Microsoft Access can't append all the records in the append query""Microsoft Access set 0 field(s) to Null due to a type conversion failure, and it didn't add <number> record(s) to the table due to key violations, 0 record(s) due to lock violations, and 0 record(s) due to validation rule violations."
"Do you want to run the action query anyway?"
To just ignore the error and run the query anyway click 'Yes'. Or, for an explanation of the causes and a description of the violations click 'Help'.
Everything is fine as long as the user does not click "YES" - then double attendance records are added to the table.
How can I get rid of this message and/or PROHIBIT choosing the "YES" answer?
Most of the answers I have seen show how to disable the warnings, but do not show how to prohibit the append query from double posting.
Rather than the pop up warning, I would like a message box to pop up saying: " ATTENDANCE RECORDS FOR THIS DATE HAVE BEEN POSTED"
Thanks
Hank