Hi
I'm struggling with yet another syntax problem... I want to reference a field in a form/subform recordset that has a table join in it's recordsource...
If I keep the square brackets in, I get an invalid bracket error... if I take them out I get the parameter request prompt for
Forms!Addrs_Dtls_Form.Addrs_Dtls_SubForm.Form!TBL1.Parent_Unique_No
Derrr....I've tried every permutation of brackets I can think of..... Any idea how this is done please? The form uses an ADODB Rs, incidentally.
I'm referencing this in the controlsource of a combobox in the subform itself so maybe there's a better shortcut? The subform is in datasheet view.
Thnx
I'm struggling with yet another syntax problem... I want to reference a field in a form/subform recordset that has a table join in it's recordsource...
Code:
SELECT * FROM My_Table WHERE Unique_no = Forms!Addrs_Dtls_Form.Addrs_Dtls_SubForm.Form![TBL1.Parent_Unique_No]
Forms!Addrs_Dtls_Form.Addrs_Dtls_SubForm.Form!TBL1.Parent_Unique_No
Derrr....I've tried every permutation of brackets I can think of..... Any idea how this is done please? The form uses an ADODB Rs, incidentally.
I'm referencing this in the controlsource of a combobox in the subform itself so maybe there's a better shortcut? The subform is in datasheet view.
Thnx