Results 1 to 3 of 3

Thread: Converting MDB to XLS Format

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    Hi Good Day to All of You, I got this small problem which is to convert one of the table inside the database(.MDB)into a .Xls format. The problem is how do i specific that particular( e.g c:\db2.mdb) database & I only want the table "Form" to be save in (.xls) format. Can i used createobject ? Please if you can help me, do write an example code for me as I'm not really good with Win API. THKS a lot for your help

  2. #2
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Post

    If I understand you correctly, you want to save all the data on your table in an Excel spreadsheet...To do it, with the table open, click Tools, Office Links, Analyze It with MS Excel.

    This will put the data to an Excel spreadsheet.

    If you prefer code:
    Code:
    docmd.outputto actable, "TableName","MicrosoftExcel(*.xls)","PathForOutput",False,""
    Hope that helps

    ------------------
    Morgan
    [email protected]
    My Web Page

  3. #3
    Member
    Join Date
    Apr 1999
    Location
    Kirkland, WA, USA
    Posts
    40

    Post

    To do it all with code and no automation, see:
    http://www.smithvoice.com/vb5expt.htm

    Shows how to export a table or any sql recordset to excel or lotus or html or whatever, even gives full source code for full conversions and a new Excel<>Jet converter utility. DAO or ADO.

    Worth looking into, saves a lot of time and effort (appears to be the actual underlying code used by MS for crossformat exports)

    ------------------
    http://www.smithvoice.com/vbfun.htm

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