Results 1 to 6 of 6

Thread: Inserting Pipe Character into Access97 Field

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987

    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}

  2. #2
    Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    61
    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.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    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}

  4. #4
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    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:
    1. Dim quote As String
    2. quote = Chr(34)
    3.  
    4. 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

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    That was the trick I was looking for, thanks Beacon.
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  6. #6
    Member
    Join Date
    Jul 2001
    Location
    Way, way out there...
    Posts
    53

    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
  •  



Click Here to Expand Forum to Full Width