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

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.
 
D

Dennis

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
 
S

Stuart McCall

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.
 

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