I am creating a Main Form (scannermainform) with a subform control in it (blankpageF). I have a number of buttons set up with onclick events that changes the Source Object of blankpageF to another form. So, when the main form is opened, it shows blankformf and when button 1 is clicked the source object for blankformf is changed to subform1. When button 2 is clicked the source object changes to subform2 and so on.
The problem I'm having is trying to reference a control on the subforms in a query for a combo box. I'm not sure of the syntax to reference a control (equipment) from the subform that is being used as the record source. I can't use the expression builder because the subform that is attached to the main form is the blankpagef form and not subform1 or subform2. I have a feeling my problem lies in the use of ! or a '.' and whether, or where, to use the [form] option.
The combo box is listing a product list based on the equipment data - so only the products run on a specific equipment are listed. I'm having problems writing the expression to use the data in [equipment] as a criteria.
Main form: scannermainform
Subform: blankpagef
Source objects: subform1, subform2
Control: Equipment
Can anyone help me parse this correctly?
Thanks, DD