G
Gary
Hi,
Question1
I use a form button to append a query record to a table,
but if the record is duplicate with the table record,
a error will show, so I want to know how to set a message box
and cancel this operation.
Question2
When I input a duplicate record in a form index field,
a error message show, I need to input a new value otherwise
I cannot close the form, now I press the ESC key two times
to cancel the action, I want to know how to set code to do this,
Hope someone can help!
Thank!!
Gary
Question1
I use a form button to append a query record to a table,
but if the record is duplicate with the table record,
a error will show, so I want to know how to set a message box
and cancel this operation.
Question2
When I input a duplicate record in a form index field,
a error message show, I need to input a new value otherwise
I cannot close the form, now I press the ESC key two times
to cancel the action, I want to know how to set code to do this,
Hope someone can help!
Thank!!
Gary