Results 1 to 6 of 6
  1. #1
    weg220 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    3

    Question Putting double quotes around text

    Hello all,

    I am wondering what is the easiest way to put double quotes around text in a column that is generated from a Select Query.

    I tried the Format methond """"@"""" but that did not work.

    Please help if you have any ideas.

    thank you



    Will

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    How about something like this that puts the double quote between two single quotes (apostrophes)

    SELECT tblCourses.pkCourseID, '"' & tblCourses.txtCouseTitle & '"'
    FROM tblCourses;


    Or this

    SELECT tblCourses.pkCourseID, chr(34) & tblCourses.txtCouseTitle & chr(34)
    FROM tblCourses;

  3. #3
    weg220 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    3
    I was hoping not to use SQL, is there a way to add the Double quotes in the Format Property or in the query Columm?

    thanks for the response

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You can just use this '"' & tblCourses.txtCouseTitle & '"' or this: chr(34) & tblCourses.txtCouseTitle & chr(34) in the column; it would be essentiall a calculated field.
    The SQL text is just easier to show in a post rather than the design grid.

  5. #5
    weg220 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    3
    Perfect you're the best, that worked Happy Holiday's

  6. #6
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome & have a great holiday!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replace double quotes
    By Kay in forum Programming
    Replies: 27
    Last Post: 12-10-2012, 10:04 PM
  2. Getting the Quotes right
    By aytee111 in forum Programming
    Replies: 2
    Last Post: 10-11-2012, 08:04 PM
  3. Import Text File Error with quotes being stripped
    By examart in forum Import/Export Data
    Replies: 2
    Last Post: 10-08-2012, 08:11 AM
  4. New Database on Customer Quotes
    By rkalapura in forum Access
    Replies: 2
    Last Post: 07-13-2012, 07:15 PM
  5. Using double quote as text delimiter
    By EddieN1 in forum SQL Server
    Replies: 4
    Last Post: 03-11-2012, 08:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums