Hello,
I have a form that filters a report. Users have the option to filter the report based on text in a certain field (the field is ExceptionName). So the user can type in Index, and any record with Index in the ExceptionName field will appear. The field used to filter the report is a combobox based on a query. Some of the options in the filter have quotes in them. So if the user selects "Customer" replaced by "Client," it produces an error because the Where statement reads:
ExceptionName Like "*"Customer" replaced by "Client"*"
It cannot read this Where statement because of the quotes around Customer and Client. I tried "" and ' in my VBA, but neither work. Can anyone help?
If this is isn't confusting.
Thanks,
Jeff
I have a form that filters a report. Users have the option to filter the report based on text in a certain field (the field is ExceptionName). So the user can type in Index, and any record with Index in the ExceptionName field will appear. The field used to filter the report is a combobox based on a query. Some of the options in the filter have quotes in them. So if the user selects "Customer" replaced by "Client," it produces an error because the Where statement reads:
ExceptionName Like "*"Customer" replaced by "Client"*"
It cannot read this Where statement because of the quotes around Customer and Client. I tried "" and ' in my VBA, but neither work. Can anyone help?
If this is isn't confusting.
Thanks,
Jeff