Open a form

A

AN

Hi

How to open a form in new record mode, i tried the following code under a
comand button click envent, but it's not working.If i change the "Data Entry
Property" to "Yes", it works but it does not allow to edit other records.

DoCmd.OpenForm "MyForm", , , , , acDialog, "GotoNew"
I am using Access2000

Thanks
 
R

Rob Oldfield

DoCmd.OpenForm "MyForm", acNormal
DoCmd.GoToRecord acDataForm, "MyForm", acNewRec
 
Top