Hi
I've had grief with this before but even referring to my previous notes has not helped...
I'm building an SQL string for the rowsource of a combo. This needs a reference to a field in it's own host form. The recordset for that Form has joined tables and the participating tables have common field names... consequently table aliases are present e.g.
TBL1.ID, TBL1.Item_Name
TBL2.ID, TBL2.Item_Name
TBL3.ID, TBL3.Item_Name
etc
How does one reference a field in a form's Rs that has aliases please?
wxyz=[Forms].[My_Form].Form![TBL1.ID]
wxyz=Forms.My_Form!TBL1.ID
wxyz=Forms!My_Form!TBL1.ID
wxyz=Forms!My_Form![TBL1].[ID]
wxyz=Forms.My_Form.Form!TBL1.ID
wxyz=(Forms)!(My_Form).TBL1.ID
..... plus a hundred other attempts!.... thanks
My form has
I've had grief with this before but even referring to my previous notes has not helped...
I'm building an SQL string for the rowsource of a combo. This needs a reference to a field in it's own host form. The recordset for that Form has joined tables and the participating tables have common field names... consequently table aliases are present e.g.
TBL1.ID, TBL1.Item_Name
TBL2.ID, TBL2.Item_Name
TBL3.ID, TBL3.Item_Name
etc
How does one reference a field in a form's Rs that has aliases please?
wxyz=[Forms].[My_Form].Form![TBL1.ID]
wxyz=Forms.My_Form!TBL1.ID
wxyz=Forms!My_Form!TBL1.ID
wxyz=Forms!My_Form![TBL1].[ID]
wxyz=Forms.My_Form.Form!TBL1.ID
wxyz=(Forms)!(My_Form).TBL1.ID
..... plus a hundred other attempts!.... thanks
My form has