Lisa_Wilderspin
08-06-2001, 02:18 AM
I have a form (UpdateTS)with text boxes (i.e NewTSTitle) on for updating data in a table.
I've written an update query but the following bit just won't work.
Title = Forms![UpdateTS]![NewTSTitle]
Text with " or ' is sometimes entered into this textbox (on the form).
I know there is some sort of rule about doubling the " marks if they
appear in the text but i've read a few conflicting posts on various groups and am now
confused (it doesn't take much!).
I've tried a few combinations of ", & and ' surrounding the
Forms![UpdateTS]![NewTSTitle] part but when i run the query (via
OpenQuery Macro from command button on the form), it puts the sql in
the field on the table rather than inputting the text in the text box. If i don't put any punctuation around the expression i get an "Invalid Argumnet" message.
Does anyone have an idea what i'm doing wrong?
Any help would be appreciated as i'm fairly new to all of this !
Thanks in advance.
Lisa
I've written an update query but the following bit just won't work.
Title = Forms![UpdateTS]![NewTSTitle]
Text with " or ' is sometimes entered into this textbox (on the form).
I know there is some sort of rule about doubling the " marks if they
appear in the text but i've read a few conflicting posts on various groups and am now
confused (it doesn't take much!).
I've tried a few combinations of ", & and ' surrounding the
Forms![UpdateTS]![NewTSTitle] part but when i run the query (via
OpenQuery Macro from command button on the form), it puts the sql in
the field on the table rather than inputting the text in the text box. If i don't put any punctuation around the expression i get an "Invalid Argumnet" message.
Does anyone have an idea what i'm doing wrong?
Any help would be appreciated as i'm fairly new to all of this !
Thanks in advance.
Lisa