The form_BeforeUpdate event

G

GPO

(Using Access 2003 (with Access tables as opposed to SQL Server backend etc))
Is there a way I can trap whether the proposed "update" that triggers the
Form_BeforeUpdate event, is going to be an insert, and update, or a delete?

Regards
 
G

GPO

Sorry, I included a confusing typo. The last sentence should read "...is
going to be an insert, an update, or a delete?..."
 
A

Allen Browne

Test the NewRecord property of the form:
If Me.NewRecord Then MsgBox "Insert" Else MsgBox "Update"

It won't be a delete.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top