I am running a query on a value in a form.
and i want the result to be displayed in another field.
The query which i have is this:
SELECT Premises.[Premises Name]
FROM Premises INNER JOIN Meeting_Agenda ON Premises.Premises_Number = Meeting_Agenda.Premises_Name
WHERE (((Meeting_Agenda.Meeting_Agenda_Number)=[Forms]![Hearing_Agenda]![Meeting_Infor]));
when i have the form open, and i get a value for the Meeting_Infor field, and then i run the query in the back ground (physically go out and select queries - then this query), i get the result that i want... a premises name.
but when i assign the query to a text box, and set its control source to this query... it comes up with #Name? all the time, and never displays the name of the place.
why is it that it will display the right name in the background when i run the query outside the form (it even updates when i select a new value for Meeting_Infor in the form). but when i try to assign the value to a field inside the form, it gives this error ??

and i want the result to be displayed in another field.
The query which i have is this:
SELECT Premises.[Premises Name]
FROM Premises INNER JOIN Meeting_Agenda ON Premises.Premises_Number = Meeting_Agenda.Premises_Name
WHERE (((Meeting_Agenda.Meeting_Agenda_Number)=[Forms]![Hearing_Agenda]![Meeting_Infor]));
when i have the form open, and i get a value for the Meeting_Infor field, and then i run the query in the back ground (physically go out and select queries - then this query), i get the result that i want... a premises name.
but when i assign the query to a text box, and set its control source to this query... it comes up with #Name? all the time, and never displays the name of the place.
why is it that it will display the right name in the background when i run the query outside the form (it even updates when i select a new value for Meeting_Infor in the form). but when i try to assign the value to a field inside the form, it gives this error ??


