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. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #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>

  4. #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
  •