Results 1 to 2 of 2
  1. #1
    newbieX is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    111

    Manipilate Excel spreadsheets from Access form


    I receive several excel spreadsheets (xls extension, which I believe is Excel 2003) that contains several lines of header data that I need to strip and then save as a csv file (This was the easiest way I could think of to convert the multiple text columns that are really numeric columns to actual numeric columns) and then append this csv file (Call it say "Upload.csv") into an existing Access 2007 database and then delete csv file. I would like to do this from an Access 2007 form.

    I would like the form to prompt the user for the location of the excel speadsheet and then hit the OK button to execute the above processes which are then are run in the background.

    I would like to automate this entire process from an Access form interface. Can this even be done? I am a newbie and don't want to head down the road of trying to figure out how to do this unless I am sure it can be done.

    Below is a dummy sample of the data JohnsData.xls

    John's Home Delivery Service
    Service you can count on
    Customer Name: Frank Johnson
    ID: FJ1023
    OrderID
    Item ProductID Price
    Quan
    Discount
    FJ1023-10042008 Carrots 11 14 12 0
    FJ1023-10042008 Apples 42 6.4 10 0
    FJ1023-10042008 Lettuce 15 42.75 5 0
    FJ1023-10042008 Celery 1078 64.3 9 0.15


    Thank for any an all help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    It can be. Using CSV is one but possibly don't need it. Data can be imported directly from spreadsheet. One method is with TransferSpreadsheet, can specify range to import from. Review: http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 19
    Last Post: 07-29-2013, 09:11 AM
  2. Replies: 6
    Last Post: 08-16-2011, 12:54 PM
  3. advanced spreadsheets
    By arun2216 in forum Access
    Replies: 4
    Last Post: 04-22-2011, 07:48 AM
  4. Replies: 1
    Last Post: 03-20-2011, 05:59 PM
  5. Replies: 1
    Last Post: 06-16-2010, 11:54 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