R
RossW
I've created a custom shortcut menu for my form that include the built-in
'Filter For:' control (Id:=2863). The problem is this: if a user enters
something like, "Message in a Bottle" (w/o the quotes), Access throws an
error which I'm assuming is because the text contains "in". It seems like
Access doesn't qualify the entry with "" whereas it does when you select
'Filter By Selection'. I can't assume that my end users will know about SQL
reserved key words and I'd like to prevent the app from hanging as it does
when this error occurs.
How/where do I capture this action so I can check if the selected control is
text-based and add the "" to the beginning & end of the entry before Access
uses it as a filter?
'Filter For:' control (Id:=2863). The problem is this: if a user enters
something like, "Message in a Bottle" (w/o the quotes), Access throws an
error which I'm assuming is because the text contains "in". It seems like
Access doesn't qualify the entry with "" whereas it does when you select
'Filter By Selection'. I can't assume that my end users will know about SQL
reserved key words and I'd like to prevent the app from hanging as it does
when this error occurs.
How/where do I capture this action so I can check if the selected control is
text-based and add the "" to the beginning & end of the entry before Access
uses it as a filter?