What do I change

  • Thread starter Thread starter Bob
  • Start date Start date
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
 
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?
 
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?
 
Back
Top