What do I change

B

Bob

I am getting a error on second line , is it that I have to change Me.Name to
something?
Private Sub Form_Open(Cancel as Integer)
DoCmd.GoToRecord acForm, Me.Name, acNewRecord
End Sub




Thanks in advance.........Bob Vance
 
R

Randy Balbuena

Bob said:
I am getting a error on second line , is it that I have to change Me.Name
to something?
Private Sub Form_Open(Cancel as Integer)
DoCmd.GoToRecord acForm, Me.Name, acNewRecord
End Sub
~ ~
Thanks in advance.........Bob Vance

Bob,

If you want to have a form exclusively dedicated for new records, you just
have to set the DataEntry property of the form to True. This will only allow
the form for new records to be added, which is what I guess your are trying
to accomplish. Either way the correct parameter is acNewRec and not
acNewRecord.

Does that help?
 
B

Bob

Thanks randy changed the script and it worked?
Randy Balbuena said:
Bob,

If you want to have a form exclusively dedicated for new records, you just
have to set the DataEntry property of the form to True. This will only
allow the form for new records to be added, which is what I guess your are
trying to accomplish. Either way the correct parameter is acNewRec and not
acNewRecord.

Does that help?
 

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

Similar Threads


Top