How to refer to subform's field ?

Ayas

New member
Local time
Today, 01:41
Joined
Apr 21, 2003
Messages
9
I have a form and it has a subform attached. I want to use a macro to move my cursor from my main's form field ( text box ) to a field ( textbox) in the subform.
I want to use GoToControl function to execute it, the question is how to refer to the subform field ? I have already written like this :
[DetailPayment Subform].Form![ProductID]
where [ProductID] was the name of the subform's textbox that I wanted to refer to. But it didn't work.
Thanks for your help...
 
you need two statements
MySubForm.SetFocus
MySubFormControl.SetFocus
 
refering subform's field in macro statement

I use macro, not VBA. Can you tell me how to refer to subform field in macro's GoToControl statement. In order to move the cursor to the field in the subform ?
Thanks again...
 

Users who are viewing this thread

Back
Top Bottom