I am trying to use the buildwhere code supplied in faq181-5497
and am having trouble. I have 3 multi select list boxes which are all enabled and visible. Each has a Where= statement in the tag property. I cut and pasted the code at the bottom of my vb page and am referencing the code as follows:
Dim strWhere As String
Set DB = CurrentDb
strWhere = BuildWhere(Me)
Set qdf = DB.CreateQueryDef("", strWhere)
For Each prm In qdf.Parameters
prm.Value = Eval(prm.Name)
Next prm
Set RSBudget = qdf.OpenRecordset
It keeps bombing on the Set qdf line with a 3316 error invalid sql statement. Any ideas?
and am having trouble. I have 3 multi select list boxes which are all enabled and visible. Each has a Where= statement in the tag property. I cut and pasted the code at the bottom of my vb page and am referencing the code as follows:
Dim strWhere As String
Set DB = CurrentDb
strWhere = BuildWhere(Me)
Set qdf = DB.CreateQueryDef("", strWhere)
For Each prm In qdf.Parameters
prm.Value = Eval(prm.Name)
Next prm
Set RSBudget = qdf.OpenRecordset
It keeps bombing on the Set qdf line with a 3316 error invalid sql statement. Any ideas?