I'm a VB programmer trying to help a friend's db.
I have written a routine to copy the results of a subform
to a textbox on another form.
The error says "must have focus"
Access help says:
"To run the GoToControl action in Visual Basic, use the GoToControl method of the DoCmd object. You can also use the SetFocus method to move the focus to a control on a form or any of its subforms, or to a field in an open
able, query, or form datasheet."
I can'r find the exact syntax to use either gotocontrol or setfocus used anywhere.
DoCmd doesn't have an example either...
Can anyone help, or wrong forum?
Thanks
John
I have written a routine to copy the results of a subform
to a textbox on another form.
The error says "must have focus"
Access help says:
"To run the GoToControl action in Visual Basic, use the GoToControl method of the DoCmd object. You can also use the SetFocus method to move the focus to a control on a form or any of its subforms, or to a field in an open
able, query, or form datasheet."
I can'r find the exact syntax to use either gotocontrol or setfocus used anywhere.
DoCmd doesn't have an example either...
Can anyone help, or wrong forum?
Thanks
John