Trap Form opening in acFormAdd mode?

  • Thread starter Thread starter Alan Fisher
  • Start date Start date
A

Alan Fisher

I would like to run some code in the On Load event only if
the form was open with the acFormAdd qualifyer. How do I
test for that once the form is open. Thanks for any help.
 
Alan Fisher said:
I would like to run some code in the On Load event only if
the form was open with the acFormAdd qualifyer. How do I
test for that once the form is open. Thanks for any help.

If Me.DataEntry Then
MsgBox "This form was opened for data entry only!"
End If
 

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

Back
Top