R
Rose B
I have a form and after the user has entered a certain number of fields I
want to test whether there is already a record in the underlying table that
has the same key attributes. I have added some code in the after update event
of the last field (which is one I know will be updated due to the nature of
the process) to test whether the record already exists. I then have a vbYesNo
test to check whether the user wishes to continue. If not, then I need to
delete the record from the underlying table (or stop it from being entered if
this is possible) and close the form. I have done everything except for
deleting the record. How can I do this?
want to test whether there is already a record in the underlying table that
has the same key attributes. I have added some code in the after update event
of the last field (which is one I know will be updated due to the nature of
the process) to test whether the record already exists. I then have a vbYesNo
test to check whether the user wishes to continue. If not, then I need to
delete the record from the underlying table (or stop it from being entered if
this is possible) and close the form. I have done everything except for
deleting the record. How can I do this?