Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Send row to Access (2003)

    What options do I have for sending an Excel row of data to be added to an Access table? Should I use ADO and labouriously AddNew for each field data? Or can I use paste the whole row simply? Thanks, Andy.

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

    Re: Send row to Access (2003)

    If the data in Excel have exactly the same columns as the target table in Access (in the same order), you can copy and paste one or more rows of data into an Access table.
    Other options are VBA code with DAO or ADO. You can open a recordset and use AddNew, or you can construct the SQL for an append query and execute the SQL.

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Send row to Access (2003)

    Thank you. Andy.

  4. #4
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Send row to Access (2003)

    You can also link the sheet as a table in Access and run an append query there.
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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