- Local time
- Today, 19:16
- Joined
- Sep 12, 2006
- Messages
- 15,953
I would use chr(34) - dbl quote
This syntax.
It's only an issue if criteria contains a " character.
I expect you could use chr(39) instead of chr(34)
SQL = "SELECT * FROM POINVrec_Line WHERE MaterialID = " & chr(34) & Criteria & chr(34)
This syntax.
It's only an issue if criteria contains a " character.
I expect you could use chr(39) instead of chr(34)
SQL = "SELECT * FROM POINVrec_Line WHERE MaterialID = " & chr(34) & Criteria & chr(34)