G
Guest
This question was in a series on replies on a thread few days ago. so I
re-post it alone.
Is there a way to write a criteria and never worry about the ' or " or other
special characters?
I'm assuming that sometimes I have to compare Strings.
like in
stLinkCriteria = "[FieldName]='" & MyVar & "'"
DoCmd.OpenForm FormName, , , stLinkCriteria
where MyVar can include '," etc..
Thank you
re-post it alone.
Is there a way to write a criteria and never worry about the ' or " or other
special characters?
I'm assuming that sometimes I have to compare Strings.
like in
stLinkCriteria = "[FieldName]='" & MyVar & "'"
DoCmd.OpenForm FormName, , , stLinkCriteria
where MyVar can include '," etc..
Thank you