|
-
Mar 5th, 2002, 05:05 PM
#1
Thread Starter
Fanatic Member
Inserting Pipe Character into Access97 Field
How would I go about inserting a pipe character into a normal Access97 text field? I have tried all the obvious ways using two pipe characters || prepending the pipe character with a backslash \| , but I still continue to get Error 3075, invalid use of vertical bars.
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
Mar 5th, 2002, 05:44 PM
#2
Member
Uhm. Why on earth would you want to use two pipe symbols in the first place?
-Vf-
Eh? How much for the women?
Joliet Jake, The Blues Brothers.
-
Mar 5th, 2002, 07:58 PM
#3
Thread Starter
Fanatic Member
I am just trying to insert a single pipe-character into an access db, but when I execute an Insert Into query using one (i.e.: INSERT INTO tblUsers(UserID, Password, UserLastName, UserFirstName, UserMiddleName) VALUES ('ldh', 'Â&|óϾã¼ï', 'Harrell', 'Lisa', 'Deanne'))
I get error 3075 w/the message "invalid use of vertical bars". Those were the two methods I've already tried, escaping the pipe with another pipe character (the same way you have to do for the single quote ' character) and escaping the pipe with a backslash (read that somewhere). Any ideas?
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
Mar 5th, 2002, 08:08 PM
#4
PowerPoster
Yeah use the ascii character instead i dont know what it's ascii character number is but this is how to use it:
VB Code:
Dim quote As String
quote = Chr(34)
rsTEXT = "rs.Open" & quote & "SELECT etc etc etc
This would insert quotations!
If you find the relavent character you can use it that way!
ciao
b
-
Mar 6th, 2002, 11:13 AM
#5
Thread Starter
Fanatic Member
That was the trick I was looking for, thanks Beacon.
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
May 2nd, 2002, 09:30 AM
#6
Member
Can I see your code
Young Buck,
Can you show me the code that worked... it's ASCII Char 124... but I'm getting errors. I need to do this to create mainframe JCL on the fly.... any help is appreciated.
Thanks,
Tom
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|