I have several combo boxes on a form for people to design there on query criteria. In one field, named Program, in the data base they select "All" it the record applies to all programs. No problem with this part.
But when they select "All" on the report criteria form the Microsort Visual Basic error message appears
"Run time error "2431". The expression you entered contains invalid syntex.
It works with all other program codes even if there are no records for the program. I am using the following code to build the criteria:
strFilter = BuildCriteria("Program", dbText, Program)
I looked but could not find "All" as a reserved word.
But when they select "All" on the report criteria form the Microsort Visual Basic error message appears
"Run time error "2431". The expression you entered contains invalid syntex.
It works with all other program codes even if there are no records for the program. I am using the following code to build the criteria:
strFilter = BuildCriteria("Program", dbText, Program)
I looked but could not find "All" as a reserved word.