P
Per Larsen
Does anybody know how to insert a text containing a vertical bar (|)
into a text column by code?
I'm inserting rows to a table by code using CurrentDb.Execute strSQL,
and everything runs fine until the SQL string contains a vertical bar
like the following:
INSERT INTO bookmarks (URL, WebName) VALUES
('http://www.urbanvoyeur.com/', 'urban | voyeur')
which returns Err.Number 3075: "Syntax error in string in query
expression ''urban | voyeur''."
It's no problem inserting the same text right into the table field when
opening the table as a datasheet.
PerL
into a text column by code?
I'm inserting rows to a table by code using CurrentDb.Execute strSQL,
and everything runs fine until the SQL string contains a vertical bar
like the following:
INSERT INTO bookmarks (URL, WebName) VALUES
('http://www.urbanvoyeur.com/', 'urban | voyeur')
which returns Err.Number 3075: "Syntax error in string in query
expression ''urban | voyeur''."
It's no problem inserting the same text right into the table field when
opening the table as a datasheet.
PerL