Hi!
I am asking the user if they want to save a description for later use, so that next time they do not need to retype the whole thing just find it in the drop down combo box.
I will only save the description after making a DLookup to see if this description exists in the the table already. It works fine until a description has a single quote in it, I will get an error, any ideas how to escape the single quote and still be able to make the DLookup.
This is the code
Thanks in advancd!!
I am asking the user if they want to save a description for later use, so that next time they do not need to retype the whole thing just find it in the drop down combo box.
I will only save the description after making a DLookup to see if this description exists in the the table already. It works fine until a description has a single quote in it, I will get an error, any ideas how to escape the single quote and still be able to make the DLookup.
This is the code
Code:
If Nz(DLookup("Description", "Descriptions", "Description = '" & Me.Description & "'"), "") = "" Then
Thanks in advancd!!