How Do I Know when a User is Appending a Record?

  • Thread starter Thread starter rm
  • Start date Start date
R

rm

In our little application we are using the generic record nav buttons.
What event fires when the user selects the "star" to add a new record?
The goal is to lock down certain fields (through the front end only)
after a record is appended.
 
When you move between records the On Current event for the form is triggered.
Therefore in the On Current event you can check if you are on a new record
using this

If Me.NewRecord = True Then
Msgbox "I am on a new record"
End if
 
rm said:
In our little application we are using the generic record nav buttons.
What event fires when the user selects the "star" to add a new record?
The goal is to lock down certain fields (through the front end only)
after a record is appended.

The form's AfterInsert event fires once a record has been appended
(inserted). Put your control locking code in there.
 
Back
Top