B
bw
I'm getting the following message:
Syntax error (missing operator) in query expression '[BankName]='Dummy Name
Int'l Bank".
This error ONLY occurs when there is an apostrophe in the bank name, as
above...AND ONLY with a specific Form. The same syntax is used for multiple
forms in my database.
The Code producing the error is as follows:
stDocName = "frmBillSeats"
stLinkCriteria = "[BankName]=" & "'" & Me![BankName] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria
Does anyone have an idea as to what the problem may be?
Syntax error (missing operator) in query expression '[BankName]='Dummy Name
Int'l Bank".
This error ONLY occurs when there is an apostrophe in the bank name, as
above...AND ONLY with a specific Form. The same syntax is used for multiple
forms in my database.
The Code producing the error is as follows:
stDocName = "frmBillSeats"
stLinkCriteria = "[BankName]=" & "'" & Me![BankName] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria
Does anyone have an idea as to what the problem may be?