Importing data from Excel to Access database

Discussion in 'Programming' started by binu794, Feb 14, 2009.

  1. #1
    Hi,
    I am doing a small application which will import data from an excel sheet and display it in a datagrid. I have done the coding for that part. i also want to store the excel sheet data in an access database. The column headings in excel sheet should be the field name in the access database. Can anyone help me with the coding for importing data from an excel sheet and storing in an access database.
     
    binu794, Feb 14, 2009 IP
  2. CubicleGuy

    CubicleGuy Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The import function (on the File menu) should do the trick for you. If you specify that you're importing from an Excel spreadsheet, it will ask you if the first row contains the field names.

    There's also a way to set up a macro to import from Excel files by using the TransferSpreadsheet action, but I've never used it. Maybe that will be enough to point you in the right direction.
     
    CubicleGuy, Feb 21, 2009 IP