I have a parameter query which is based upon a combo box on a form. When I select something from the combo box the query runs, but I get no records returned. If I run the query without the combo box input (just by typing in the criteria), records are displayed no problem. What am I missing?
This is what I have on my Combo Box.
Private Sub ComboExec_AfterUpdate()
DoCmd.OpenQuery "QRYExecDiary", acReadOnly
End Sub
This is what I have in the criteria in my Exec field in my query.
[forms]![SwitchBoard]![ComboExec]
where SwitchBoard is the name of my form and ComboExec is the name of my combo box.
I also have this as criteria on another field in my query, which I type in. I have removed this from the query and I still get blank records so I don't think it is the problem.
Between [enter start date] And [enter end date]
Any help would be greatly appreciated!
This is what I have on my Combo Box.
Private Sub ComboExec_AfterUpdate()
DoCmd.OpenQuery "QRYExecDiary", acReadOnly
End Sub
This is what I have in the criteria in my Exec field in my query.
[forms]![SwitchBoard]![ComboExec]
where SwitchBoard is the name of my form and ComboExec is the name of my combo box.
I also have this as criteria on another field in my query, which I type in. I have removed this from the query and I still get blank records so I don't think it is the problem.
Between [enter start date] And [enter end date]
Any help would be greatly appreciated!