+ Reply to Thread
Results 1 to 5 of 5

Formatting in Excel to Access Database

Hybrid View

  1. #1
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Formatting in Excel to Access Database

    I am copy cells from excel and putting it into an Access database, but the cells need to have at least 6 characters, if not then I need to add 0's infront of the existing number. When I do this in excel, and then copy it into Access, it does not carry over the format??? It deletes the 0's, any ideas how I can do this?
    Last edited by 00Able; 03-03-2011 at 10:36 PM.
    Providing Problems for Your Solutions
    STARS are my Punching Bag, You will be rewarded.

    In the rare event that I may help you, feel free to make me see STARS

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,307

    Re: Formatting in Excel to Access Database

    Change the numbers to strings before trying to copy them over.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Re: Formatting in Excel to Access Database

    In hopes that I do not sound like an idiot, how do I do that?

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,307

    Re: Formatting in Excel to Access Database

    With 45 in A1
    =REPT(0,8-LEN(A1))&A1
    should do the trick for 8 digit long strings.

  5. #5
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Re: Formatting in Excel to Access Database

    Thanks I appreciate this, this will work for my initial problem, but I have added another thread to see if I can make a macro out of this, trying to kill 2 birds with a stone...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1