The “Replace” function should do the trick. Based on your code above:
DLookup("island", "villages", "village="" & Replace(txtVillage, """, "''") & "'")
More Related Contents:
- How do I use parameters in VBA in the different contexts in Microsoft Access?
- What’s the difference between DoCmd.SetWarnings and CurrentDB.Execute
- Using Excel VBA to export data to MS Access table
- How to use system username directly in MS Access query?
- Access – compare two tables and update or insert data in first table
- Query for getting value from another record in same table and filter by difference greater than a gap threshold
- How to save the result of a SQL query into a variable in VBA?
- SQL multiple join statement
- How do I write a full outer join query in access
- How to handle a single quote in Oracle SQL
- How to do INSERT into a table records extracted from another table
- Multiple INNER JOIN SQL ACCESS
- Performing SQL queries on an Excel Table within a Workbook with VBA Macro
- Table-less UNION query in MS Access (Jet/ACE)
- Ms Access Query: Concatenating Rows through a query
- is there a group_concat function in ms-access?
- Accessing SQL Database in Excel-VBA
- Oracle SQL escape character (for a ‘&’)
- Excel function to make SQL-like queries on worksheet data?
- How do I implement pagination in SQL for MS Access?
- [] brackets in sql statements
- Row numbers in query result using Microsoft Access
- SQL to add column with default value – Access 2003
- “You tried to execute a query that does not include the specified aggregate function”
- How can I implement SQL INTERSECT and MINUS operations in MS Access
- How to escape square brackets inside square brackets for field name
- SQL Update woes in MS Access – Operation must use an updateable query
- Select query with date condition
- Does MS access(2003) have anything comparable to Stored procedure. I want to run a complex query in MS acceess
- How do I create a decimal field in Access with Alter Table?