Hi All,
I am wondering if my syntax is right for this. I haven't been using access for long as you will no doubt find.
I have a form which i have a cbo box to select a contractor lastname so i can get the jobs due for starting on a scheduled date.
Form has a Combo6 which is a lookup via a query.
It has a txtFrom unbound text box for the date.
DoCmd.OpenReport "rptAllJobs", acViewPreview, , "[InstLastName]=" & Me.Combo6, "[SchedInstallDate]=#" & Me.txtFrom & "#"
I keep looking at this and can't see where i'm going wrong.
Any ideas?
Thank you in advance.
I am wondering if my syntax is right for this. I haven't been using access for long as you will no doubt find.
I have a form which i have a cbo box to select a contractor lastname so i can get the jobs due for starting on a scheduled date.
Form has a Combo6 which is a lookup via a query.
It has a txtFrom unbound text box for the date.
DoCmd.OpenReport "rptAllJobs", acViewPreview, , "[InstLastName]=" & Me.Combo6, "[SchedInstallDate]=#" & Me.txtFrom & "#"
I keep looking at this and can't see where i'm going wrong.
Any ideas?
Thank you in advance.