Add New Record Error

lscheer

Registered User.
Local time
Today, 21:00
Joined
Jan 20, 2000
Messages
185
Can anyone help me with this code? I want to add a new record to a form, but I'm getting a syntax error with my code. Also, do I need to use the Update method with NewRec?

DoCmd.OpenForm ("CONTACTS", acNormal, , , acDataModeEdit, acWindowNormal, DoCmd.GoToRecord [,,acNewRec])

Thanks!
 
Not sure what you mean by:
"Also, do I need to use the Update method with NewRec"

But to open the form to a new empty record use:

DoCmd.OpenForm "CONTACTS", , , , acFormAdd

HTH
RDH
 

Users who are viewing this thread

Back
Top Bottom