Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    adding ' to a field (access 2003)

    Not sure if this can be done but I have a field in my table called appointment #. I have someone that would like to add " and a comma before and after this field. I tried doing this in an update query but with no luck. Is there anyway I can format this so that I can export it to excel? Thanks..

    I need it to look like this. Format : "0000000004069860,"

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

    Re: adding ' to a field (access 2003)

    You could create a query based on the table.
    Add the fields you need to the query grid, but instead of the appointment # field, use
    <code>
    FormattedApppointment: Chr(34) & [appointment #] & "," & Chr(34)
    </code>
    Save the query and export it to Excel.

Posting Permissions

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