GRRRR - frustrating error
Using access 2003:
How do you handle a Dlookup with a single quote in the criteria?
ie < O'brien > or < The smiths' >
Produces
Runtime error 3075: syntax error in string in query expression
'Name='TheSmiths'
Using access 2003:
How do you handle a Dlookup with a single quote in the criteria?
ie < O'brien > or < The smiths' >
Code:
Nz(DLookup("[TotalSales]", "SalesTeam", "[Name] = '" & StrV & "'"), 0)
Produces
Runtime error 3075: syntax error in string in query expression
'Name='TheSmiths'