ineedahelp
Technical User
I have a form (frmMainData) with a combo box (comboFindClient)and a subform (subfrmPayment) with a multi select list box in the header. The SQL for the recordset of the list box is as follows:
If I put an actual number as the criteria instead of Forms!frmMainData!comboFindClient my listbox populates...otherwise nothing.
Any help?
Code:
SELECT JobInfo.JobID, JobInfo.JobDate, JobInfo.JobDescription, JobInfo.BilledOn, JobInfo.Paid, [HoursWorked]*[JobRate] AS Cost
FROM JobInfo
WHERE (((JobInfo.Paid)=False) AND ((JobInfo.ClientID)=[forms]![frmMainData]![comboFindClient]))
ORDER BY JobInfo.JobDate DESC;
Any help?