Hi All,
Here's what I've got so far:
- A form with several combo boxes with filed that the suer can choose to filter a report by.
- Each Combo Box has a button beside it with has the code behind it.
- I have managed to get the code the work for some but it won't for other
Example :
---------
It gives an error message saying :
Can anyone see what i might be doing wrong??
Thanks in advance
-Elfman
Here's what I've got so far:
- A form with several combo boxes with filed that the suer can choose to filter a report by.
- Each Combo Box has a button beside it with has the code behind it.
- I have managed to get the code the work for some but it won't for other
Example :
---------
DoCmd.OpenReport "rpt_PDP_data", acViewPreview, , "[pref_1]= " & Me.pref_1 (This one works)
DoCmd.OpenReport "rpt_PDP_data", acViewPreview, , "[Name]= " & Me.CboName (This one doesn’t)
It gives an error message saying :
Syntax error (missing operator) in query expression
Can anyone see what i might be doing wrong??
Thanks in advance
-Elfman