R
redFred
Main form has subform, which in turn has a subform with a combo box that I
want to use to return jobs only for the client ID of the main form (I also
have a Client ID text box on the that subform).
My row source is:
SELECT [tbl 2 Job].InvNum, [tbl 2 Job].EnterDate, [tbl 2 Job].StartDate,
[tbl 2 Job].EndDate FROM [tbl 2 Job] WHERE ((([tbl 2
Job].ClientID)=[Forms]![frm1 Client]![txtClientID])) ORDER BY [tbl 2
Job].StartDate DESC;
The combo box returns "Name#". However, pulling down the list the records
associated with the first client record in the table appear for all clients.
I am confident my issue is the Where Clause is not correct.
Can anyone see what is wrong with my Where Clause?
BTW, on my main form ClientID is contained in text box txtClientID; on the
second subform it is contained in text box txtClientID with a control source
of "=[Forms]![frm1 Client]![txtClientID]".
Thanks.
want to use to return jobs only for the client ID of the main form (I also
have a Client ID text box on the that subform).
My row source is:
SELECT [tbl 2 Job].InvNum, [tbl 2 Job].EnterDate, [tbl 2 Job].StartDate,
[tbl 2 Job].EndDate FROM [tbl 2 Job] WHERE ((([tbl 2
Job].ClientID)=[Forms]![frm1 Client]![txtClientID])) ORDER BY [tbl 2
Job].StartDate DESC;
The combo box returns "Name#". However, pulling down the list the records
associated with the first client record in the table appear for all clients.
I am confident my issue is the Where Clause is not correct.
Can anyone see what is wrong with my Where Clause?
BTW, on my main form ClientID is contained in text box txtClientID; on the
second subform it is contained in text box txtClientID with a control source
of "=[Forms]![frm1 Client]![txtClientID]".
Thanks.