C
cmpq
Hi
I'm having trouble accessing a record in access as a string from a word macro.
The record is a list of surnames and 1 of the surnames contains an
apostrophe e.g. O'Sullivan.
heres my code
Set rs = gdbLdsData.OpenRecordset("Select * from qslUsers Where Name = '" &
StrSection & "'", dbOpenSnapshot)
txtUserText = rs("FirstName") & " " & rs("Surname") + vbCr & rs("Title")
doing something simple as this does not display
temp As String
msgBox (rs("Surname"))
I can't make any changes to Access as there are other word macros that rely
on this. Is there any way around this?
Thanks in advance
I'm having trouble accessing a record in access as a string from a word macro.
The record is a list of surnames and 1 of the surnames contains an
apostrophe e.g. O'Sullivan.
heres my code
Set rs = gdbLdsData.OpenRecordset("Select * from qslUsers Where Name = '" &
StrSection & "'", dbOpenSnapshot)
txtUserText = rs("FirstName") & " " & rs("Surname") + vbCr & rs("Title")
doing something simple as this does not display
temp As String
msgBox (rs("Surname"))
I can't make any changes to Access as there are other word macros that rely
on this. Is there any way around this?
Thanks in advance