M
Margaret Bartley
Two questions:
I'm trying to append a record, and put "'text | Text1 |
test2' " in a text field., but something
doesn't like the pipe character.
When I run the following code:
strSQL="INSERT INTO Folders ( FullName ) SELECT 'text |
Text1 | test2' ;"
DoCmd.RunSQL strSQL,
I get the prompt asking me what Text1 is.
When I create that query, in the query builder, and put
"text | Text1 | test2"
in the first row of the grid, (the Field row), when I leave
the cell, the querybuilder changes the text value to
"text|[Text1]|test2", and again
I cannot run the query, I get the same prompt, asking me
where Text1 is.
I remember reading something a long time ago about how to
use a character that
has a reserved meaning, but I can't find it in the Help
files, and I don't know what
to look for when searching the different KBs and websites..
Question 1: How do I compose the string to append a record
with a value with the pipe character in it?
Question 2: Where and how is that information documented?
Many thanks,
Margaret
I'm trying to append a record, and put "'text | Text1 |
test2' " in a text field., but something
doesn't like the pipe character.
When I run the following code:
strSQL="INSERT INTO Folders ( FullName ) SELECT 'text |
Text1 | test2' ;"
DoCmd.RunSQL strSQL,
I get the prompt asking me what Text1 is.
When I create that query, in the query builder, and put
"text | Text1 | test2"
in the first row of the grid, (the Field row), when I leave
the cell, the querybuilder changes the text value to
"text|[Text1]|test2", and again
I cannot run the query, I get the same prompt, asking me
where Text1 is.
I remember reading something a long time ago about how to
use a character that
has a reserved meaning, but I can't find it in the Help
files, and I don't know what
to look for when searching the different KBs and websites..
Question 1: How do I compose the string to append a record
with a value with the pipe character in it?
Question 2: Where and how is that information documented?
Many thanks,
Margaret