Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form.BeforeInsert & BeforeUpdate confusion

Status
Not open for further replies.

Dmcniell

IS-IT--Management
Nov 3, 2003
8
US
I've noticed some unusual things in Access 2002 regarding when Form.BeforeInsert fires off and when Form.BeforeUpdate fires off.

I'm trying to do an action immediately before the physical insertion into the access database.

While in insert mode, what is happening is...

The BEFOREINSERT for the form module fires off immiediately after I type the first character into the form.

And the BEFOREUPDATE for the form module fires off immediately before the physical insert.

Since I want to run some code before an insert and not an update, the above behavior does not help.

My question... Is there an indicator (like a global environment variable) that indicates that a form is in INSERT mode? This would solve my problem.

Thanks in advance for any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top