tinkiewinkie
Programmer
I am trying to change the current record in a sub-form using VBA code in access. I am using the DoCmd.GoToRecord method, but I don't seem to get the object right. Here is the line of code:
DoCmd.GoToRecord acDataForm, Forms("frmFind"
("subFrmFind"
.Form, acGoTo, 12
Where subFrmFind is the subform and frmFind is the main form. I want it to go to record twelve in this example.
Whenever I trigger this code it responds with an error:
The expression you entered is the wrong data type for one of the arguments.
Thanks in advance.
DoCmd.GoToRecord acDataForm, Forms("frmFind"
Where subFrmFind is the subform and frmFind is the main form. I want it to go to record twelve in this example.
Whenever I trigger this code it responds with an error:
The expression you entered is the wrong data type for one of the arguments.
Thanks in advance.