Open a form in ADD mode

M

Marco

How can I open a form in ADD mode. My idea is to open a form in order that
users may insert data instead of pressing the button new first.

But that form is already used to show data.

Any idea?

Regards,
Marco
 
D

Douglas J. Steele

If you set the form's DataEntry property to True, all it will do is allow
adds (i.e.: it won't show any existing data)

If you want the existing data to show as well, try the following on your
form's Load event:

Private Sub Form_Load()
DoCmd.GoToRecord acDataForm, Me.Name, acNewRec
End Sub
 
M

Marco

Hi. Sorry for my late answer.


How can I do this:

I have button A and Button B. If I press button A the form Users will open
to me with the user that I have select. If I press button B, form Users will
open in Add mode.

If I press button A it will open the form in Edit mode in order that I can
change specific user values, if I press B it will allow me to Add a new User.

How?

Regards,
Marco
 

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