I need the code or any help to be able to get a combobox to run a query
based apon the value selected within the combobox, i also dont know how to make the query variable and linked to the combobox so that i dont have to produce loads of queries.
I so far have this SQL code
SELECT NRTS.Item, NRTS.Description, NRTS.[NRTS No], NRTS.[Serial Number], NRTS.[Date Issued], NRTS.[Cal Due], NRTS.[Allocated To], NRTS.[Pat due Date], NRTS.Comments
FROM NRTS
WHERE [Allocated To]=Forms![Main]![Combo5];
And in the afterupdate event of the combobox,
DoCmd.OpenQuery "MyQuery"
But when i select anything in the combobox the query runs, but dosent return any records.
Any help would be great.
based apon the value selected within the combobox, i also dont know how to make the query variable and linked to the combobox so that i dont have to produce loads of queries.
I so far have this SQL code
SELECT NRTS.Item, NRTS.Description, NRTS.[NRTS No], NRTS.[Serial Number], NRTS.[Date Issued], NRTS.[Cal Due], NRTS.[Allocated To], NRTS.[Pat due Date], NRTS.Comments
FROM NRTS
WHERE [Allocated To]=Forms![Main]![Combo5];
And in the afterupdate event of the combobox,
DoCmd.OpenQuery "MyQuery"
But when i select anything in the combobox the query runs, but dosent return any records.
Any help would be great.