Hi All
I am stumped! I have a combobox which looks up and stores the primary key for a school. I have another unbound field into which I have inserted the following SQL code (extracted from a query which works perfectly).
SELECT a01_Corridor.CorridorID
FROM a01_Corridor INNER JOIN a05_Schools ON a01_Corridor.CorridorID = a05_Schools.Corridor
WHERE (((a05_Schools.SchoolName)=[Forms]![fe04_Inst4MaterialTxns]![School]));
This works perfectly in the query window but if I paste this exact code as the unbound control's contro lsource I get a #Name? error.
Please help?
Beem
I am stumped! I have a combobox which looks up and stores the primary key for a school. I have another unbound field into which I have inserted the following SQL code (extracted from a query which works perfectly).
SELECT a01_Corridor.CorridorID
FROM a01_Corridor INNER JOIN a05_Schools ON a01_Corridor.CorridorID = a05_Schools.Corridor
WHERE (((a05_Schools.SchoolName)=[Forms]![fe04_Inst4MaterialTxns]![School]));
This works perfectly in the query window but if I paste this exact code as the unbound control's contro lsource I get a #Name? error.
Please help?
Beem