dab1477
Board Regular
- Joined
- Jul 30, 2002
- Messages
- 65
Thanks in advance for the assist. Pulling my hair out!
I am trying to run the following code during Form Load:
Private Sub Form_Load()
DoCmd.GoToRecord acDataForm, SOC_Enter, acNewRec
End Sub
I entered the above code via the Properties/Event/On LOAD using Code Builder.
When I save and attempt to run I get a macros window asking me to enter a macro name and create the macro. I did this and no luck,
I am within an event procedure where I selected CODE BUILDER. I have saved file, exited, and returned. I get the following error:
"The expression ON_LOAD you entered as an event property setting produced the following error: Invalid outside procedure"
I have reviewed the HELP button without success. Where am I going wrong! How do I get this form to open to a new record?
Thanks.
I am trying to run the following code during Form Load:
Private Sub Form_Load()
DoCmd.GoToRecord acDataForm, SOC_Enter, acNewRec
End Sub
I entered the above code via the Properties/Event/On LOAD using Code Builder.
When I save and attempt to run I get a macros window asking me to enter a macro name and create the macro. I did this and no luck,
I am within an event procedure where I selected CODE BUILDER. I have saved file, exited, and returned. I get the following error:
"The expression ON_LOAD you entered as an event property setting produced the following error: Invalid outside procedure"
I have reviewed the HELP button without success. Where am I going wrong! How do I get this form to open to a new record?
Thanks.