R
Robin
Hi
I have a problem caused by apostrophes. The following builds a string which
is then used to set the control source property of a text box. This works
fine until one of the included name fields contains an apostrophe. I see
why this doesn't work, but I can't see how to fix it!
________________________________________________________
strCtlSrc = "='Some text here " & [FirstName] & " " & [LastName] & "
some text here.'"
Me!MyTextBox.ControlSource = strCtlSrc
________________________________________________________
Any ideas very welcome.
Regards
Robin
I have a problem caused by apostrophes. The following builds a string which
is then used to set the control source property of a text box. This works
fine until one of the included name fields contains an apostrophe. I see
why this doesn't work, but I can't see how to fix it!
________________________________________________________
strCtlSrc = "='Some text here " & [FirstName] & " " & [LastName] & "
some text here.'"
Me!MyTextBox.ControlSource = strCtlSrc
________________________________________________________
Any ideas very welcome.
Regards
Robin