G
Guest
This seems to be a fairly common topic, yet I am still unsuccessful opening
the right record. I'm trying to open another form by double clicking a field
in a subform. My vain attempts at VBA result in a dialog box asking for the
string for the where clause of docmd.openform. If you supply the value the
form opens just fine. Apparently I am not referencing the subform field
properly.
DoCmd.OpenForm "VendorData", acNormal, , "Vender = forms![cargo
manifest].form![input].vendor"
VendorData is the target form with a field of "Vender". Input is a the
subform of "Cargo Manifest" and the field with the relevent string is
"Vender".
the right record. I'm trying to open another form by double clicking a field
in a subform. My vain attempts at VBA result in a dialog box asking for the
string for the where clause of docmd.openform. If you supply the value the
form opens just fine. Apparently I am not referencing the subform field
properly.
DoCmd.OpenForm "VendorData", acNormal, , "Vender = forms![cargo
manifest].form![input].vendor"
VendorData is the target form with a field of "Vender". Input is a the
subform of "Cargo Manifest" and the field with the relevent string is
"Vender".