I'm trying to build a multi selection filter form using faq181-5497. I believe I have my 3 list boxes on the form built correctly. They are list boxes that have multi select enabled, are visible, and are enabled. Each box has a Where= statement in the Tag property. I will post how I am trying to use the function:
Set DB = CurrentDb
strSQL = BuildWhere(Me)
Set qdf = DB.CreateQueryDef("", strSQL)
For Each prm In qdf.Parameters
prm.Value = Eval(prm.Name)
Next prm
Set RSBudget = qdf.OpenRecordset
Where BuildWhere(Me) is the function provided. I have gotten both a 3319 error and a 3066 error depending on how many of the list boxes I use. Any ideas?
Set DB = CurrentDb
strSQL = BuildWhere(Me)
Set qdf = DB.CreateQueryDef("", strSQL)
For Each prm In qdf.Parameters
prm.Value = Eval(prm.Name)
Next prm
Set RSBudget = qdf.OpenRecordset
Where BuildWhere(Me) is the function provided. I have gotten both a 3319 error and a 3066 error depending on how many of the list boxes I use. Any ideas?