Smack2010
Jan 22, 2021Copper Contributor
Access Form Open New Record
I’ve created a database with 2 split forms. I want to have access open to one specific form and once it opens I want to have it open to a new record. In the current database options I have selected the display form and in the on load event I have entered Private Sub Form_Load()
DoCmd.GoToRecord acDataForm, Me.Name, acNewRec
End Sub
When I do that within access it works fine, but once I close access and relaunch I receive Run-time error ‘2046’: The command or action ‘GoToRecord’ isn’t available now. When I don’t have the display form option it isn’t received. How can I get these 2 features to work together?
DoCmd.GoToRecord acDataForm, Me.Name, acNewRec
End Sub
When I do that within access it works fine, but once I close access and relaunch I receive Run-time error ‘2046’: The command or action ‘GoToRecord’ isn’t available now. When I don’t have the display form option it isn’t received. How can I get these 2 features to work together?