G
GD
Seemingly quick question using an A2K database. Here is my Dlookup
statement (Inserted into the control source for a text box):
DLookUp("Inspection_Tool","tblValidPartDimensions","Dimension_No =
' " & [txtDimension_No] & " ' ")
It returns the values I want just fine, except for one scenario. If
the string in txtDimension_No has a single quote in in ( ' ), then it
returns #Error. So imagine if it said something like O'Riley.
How can I rework my DLookUp statement to fix this? Thanks.
statement (Inserted into the control source for a text box):
DLookUp("Inspection_Tool","tblValidPartDimensions","Dimension_No =
' " & [txtDimension_No] & " ' ")
It returns the values I want just fine, except for one scenario. If
the string in txtDimension_No has a single quote in in ( ' ), then it
returns #Error. So imagine if it said something like O'Riley.
How can I rework my DLookUp statement to fix this? Thanks.