J
Jay
I have a Double Click Event Procedure that launches a form with the specific
record only. Works fine unless there is a ' in the text of the link. i.e.
Susans Call works but Susan's Call creates an error.
Below if the code for the link, how would I handle passing the appostrophe
without causing an error:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "ViewNoteForm"
stLinkCriteria = "[Notes]=" & "'" & Me![Notes] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
record only. Works fine unless there is a ' in the text of the link. i.e.
Susans Call works but Susan's Call creates an error.
Below if the code for the link, how would I handle passing the appostrophe
without causing an error:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "ViewNoteForm"
stLinkCriteria = "[Notes]=" & "'" & Me![Notes] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria