Hi
Got an interesting syntax issue. I have a linked Mainform/Subform set up. My main form is populated with an SQL Select statement in the recordsource... For all manner of reasons (mainly due to the possiblilty of a JOIN) I have to alias the column names in the Select by altering the "." notation to an underscore "_" .. e.g.
SELECT
TBL1.Unique_No AS TBL1_Unique_No,
TBL1.Item_Name AS TBL1_Item_Name
TBL1.Contacts_Unique_No AS TBL1_Contacts_Unique_No,
TBL2.Unique_No AS TBL2_Unique_No,
TBL2.Item_Name AS TBL2_Item_Name
FROM ((Addesses) AS TBL1
OUTER LEFT JOIN Contacts AS TBL2 ON TBL1.Contacts_Unique_No=TBL2.Unique_No)
WHERE blah blah
The Subform needs to be linked to the TBL1.Unique_No column.
Now here's the syntax query. If I put TBL1_Unique_No as the Master Field it works perfectly....the subform shows the relavant data.... BUT when I open the form I get the "Enter Parameter Value" box asking for "TBL1_Unique_No" ???
Thinking that Access might be looking under the bonnet at the real columns I tried putting "TBL1.Unique_No" but that still produces the Enter Parameter Value box and does not produce the correct data in the subform anyway.
Any ideas anyone please? Thnx
Got an interesting syntax issue. I have a linked Mainform/Subform set up. My main form is populated with an SQL Select statement in the recordsource... For all manner of reasons (mainly due to the possiblilty of a JOIN) I have to alias the column names in the Select by altering the "." notation to an underscore "_" .. e.g.
SELECT
TBL1.Unique_No AS TBL1_Unique_No,
TBL1.Item_Name AS TBL1_Item_Name
TBL1.Contacts_Unique_No AS TBL1_Contacts_Unique_No,
TBL2.Unique_No AS TBL2_Unique_No,
TBL2.Item_Name AS TBL2_Item_Name
FROM ((Addesses) AS TBL1
OUTER LEFT JOIN Contacts AS TBL2 ON TBL1.Contacts_Unique_No=TBL2.Unique_No)
WHERE blah blah
The Subform needs to be linked to the TBL1.Unique_No column.
Now here's the syntax query. If I put TBL1_Unique_No as the Master Field it works perfectly....the subform shows the relavant data.... BUT when I open the form I get the "Enter Parameter Value" box asking for "TBL1_Unique_No" ???
Thinking that Access might be looking under the bonnet at the real columns I tried putting "TBL1.Unique_No" but that still produces the Enter Parameter Value box and does not produce the correct data in the subform anyway.
Any ideas anyone please? Thnx