Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Mar 2006
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    275
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Force text format in linked table (2003 sp3)

    I want to link to an Excel spreadsheet to my database but Access forces numeric data to number even though it is formatted text in the spreadsheet. Is there a way to force Access to accept the text format?
    Thanks
    chuck

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

    Re: Force text format in linked table (2003 sp3)

    You could prefix the numeric values in the Excel worksheet with an apostrophe. This forces the values to be interpreted as text.
    If you can't or won't modify the worksheet, you could create a query based on the linked table that converts the field to text, e.g.
    <code>
    TextField: CStr([NumberField])</code>

  3. #3
    3 Star Lounger
    Join Date
    Mar 2006
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    275
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Force text format in linked table (2003 sp3)

    Outstanding!
    Thanks
    chuck

Posting Permissions

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