I have a form that has a combo box to select criteria for a filter. The combo pulls down unique values from the table. The problem happens when the user selects a blank from the combo.
This is the code where I'm using the result from the combo box.
Case intSelss
Set DB = CurrentDb
Set qdf = DB.CreateQueryDef("", "Select * From [Summary of fx and oh] Where [Staffing Status] = Forms![Dollar Export with fx and oh]![Cboss]")
For Each prm In qdf.Parameters
prm.Value = Eval(prm.Name)
Next prm
Set RSBudget = qdf.OpenRecordset
So in this case if they choose staffing status = blank it comes up with no results. Any ideas?
Thanks!
This is the code where I'm using the result from the combo box.
Case intSelss
Set DB = CurrentDb
Set qdf = DB.CreateQueryDef("", "Select * From [Summary of fx and oh] Where [Staffing Status] = Forms![Dollar Export with fx and oh]![Cboss]")
For Each prm In qdf.Parameters
prm.Value = Eval(prm.Name)
Next prm
Set RSBudget = qdf.OpenRecordset
So in this case if they choose staffing status = blank it comes up with no results. Any ideas?
Thanks!