Escaping ‘ in Access SQL

The “Replace” function should do the trick. Based on your code above:

DLookup("island", "villages", "village="" & Replace(txtVillage, """, "''") & "'")

Leave a Comment