Results 1 to 3 of 3

Thread: Export Excel to Access Table??

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    39
    Hi,
    i'm using DAO data object.
    Anyone knows how to Export Excel to Access Table??

    Please help.. Thanks.

    Thomas
    ThOmaS TaN

  2. #2
    Member
    Join Date
    Jul 2000
    Location
    Hong kong
    Posts
    53

    Unhappy

    hmm... I've just been asking about this. Apparently for DAO it's simply this

    dim db as database
    on error resume next

    set db = workspaces(0).opendatabase(app.path & "worksheet.xls")

    db.execute "SELECT * INTO [c:\temp\mydb\ from [mytablename]

    Hope this helps, this code hasn't worked for me yet, but I tested the sample files given to me from http://www.smithvoice.com
    and they work.

  3. #3
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

Posting Permissions

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



Click Here to Expand Forum to Full Width