Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding ampersand (2002)

    How can I incorporate an and sign (&) within a SQL statement? I'm trying to use DoCmd.RunSQL to execute an UPDATE query which appends the letter A to a text field. Thanks, Andy.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Adding ampersand (2002)

    Something like
    <code>
    strSQL = "UPDATE MyTable SET MyField = MyField & 'A'"
    DoCmd.RunSQL strSQL</code>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •