G
Guest
Hello:
I have a button in form A which will open form B to add new records. I also
want to set focus on a field in form B when it it opened. My code is as
following
DoCmd.RunCommand acCmdRecordsGoToNew
Myfield.SetFocus
However, when I click the button, the cursor will not move to the Myfield
and I always got error message saying "Object Required"
Any suggestions?
Thanks in advance!
I have a button in form A which will open form B to add new records. I also
want to set focus on a field in form B when it it opened. My code is as
following
DoCmd.RunCommand acCmdRecordsGoToNew
Myfield.SetFocus
However, when I click the button, the cursor will not move to the Myfield
and I always got error message saying "Object Required"
Any suggestions?
Thanks in advance!