I need some help please, I have a form with the following fields:
Job#
Phase
Task#
Trade
Hours worked
I need to use a combo box for the task# from data filtered by a query using the values from the job# and phase. I build the expression for the parameters and I get no data.
If I use the data from the trade and job# it works fine!
For each Job there is several phases with tasks assign by trade, this data is in a separate table
This works fine
SELECT [Qry Rprt Tasks by Job test07].[Task #], [Qry Rprt Tasks by Job test07].Trade, [Qry Rprt Tasks by Job test07].[Job #]
FROM [Qry Rprt Tasks by Job test07]
WHERE ((([Qry Rprt Tasks by Job test07].Trade)=[Forms]![Timecard Data Entry Form]![Trade]) AND (([Qry Rprt Tasks by Job test07].[Job #])=[Forms]![Timecard Data Entry Form]![Job #]))
ORDER BY [Qry Rprt Tasks by Job test07].[Task #];
This will not.
SELECT [Qry Rprt Tasks by Job test07].Phase, [Qry Rprt Tasks by Job test07].[Task #], [Qry Rprt Tasks by Job test07].[Job #], [Qry Rprt Tasks by Job test07].Trade
FROM [Qry Rprt Tasks by Job test07]
WHERE ((([Qry Rprt Tasks by Job test07].Phase)=[Forms]![Timecard Data Entry Form]![Phase]) AND (([Qry Rprt Tasks by Job test07].[Job #])=[Forms]![Timecard Data Entry Form]![Job #]))
ORDER BY [Qry Rprt Tasks by Job test07].Phase;
Job#
Phase
Task#
Trade
Hours worked
I need to use a combo box for the task# from data filtered by a query using the values from the job# and phase. I build the expression for the parameters and I get no data.
If I use the data from the trade and job# it works fine!
For each Job there is several phases with tasks assign by trade, this data is in a separate table
This works fine
SELECT [Qry Rprt Tasks by Job test07].[Task #], [Qry Rprt Tasks by Job test07].Trade, [Qry Rprt Tasks by Job test07].[Job #]
FROM [Qry Rprt Tasks by Job test07]
WHERE ((([Qry Rprt Tasks by Job test07].Trade)=[Forms]![Timecard Data Entry Form]![Trade]) AND (([Qry Rprt Tasks by Job test07].[Job #])=[Forms]![Timecard Data Entry Form]![Job #]))
ORDER BY [Qry Rprt Tasks by Job test07].[Task #];
This will not.
SELECT [Qry Rprt Tasks by Job test07].Phase, [Qry Rprt Tasks by Job test07].[Task #], [Qry Rprt Tasks by Job test07].[Job #], [Qry Rprt Tasks by Job test07].Trade
FROM [Qry Rprt Tasks by Job test07]
WHERE ((([Qry Rprt Tasks by Job test07].Phase)=[Forms]![Timecard Data Entry Form]![Phase]) AND (([Qry Rprt Tasks by Job test07].[Job #])=[Forms]![Timecard Data Entry Form]![Job #]))
ORDER BY [Qry Rprt Tasks by Job test07].Phase;