Results 1 to 3 of 3

Thread: Article: Retrieve Data From A Database To Excel Using SQL

  1. #1
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,483
    Articles
    43
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider

    Article: Retrieve Data From A Database To Excel Using SQL



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book Master Your Data for Excel and Power BI, or our new Power Query Recipe cards!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  2. #2
    Dear Ken,

    I'm having problems with the above code.
    After executing 'GetRecords', I'm getting Run-time error '-2147217865(80040e37)': Method 'Open' of object '_Recordset' failed.
    The debug highlight is set on:
    PHP Code:
    'Open recordset based on Orders table    rst.Open strSQL, cnt 
    'glob_DBPath' is directing to your Marina.mdb of your previous post (also of 7years ago
    ).
    Thank you for your posts,
    And regards my regards,
    Dito

  3. #3
    Neophyte roykana's Avatar
    Join Date
    Jun 2021
    Posts
    1
    Articles
    0
    Excel Version
    office 2010 64 bit
    Dear Mr. Ken,
    Please help for the vba array code above.I tried this vba array code very fast. I want to ask how the vba code for "Private Const glob_sConnect" for files with extension dbf or dbase 5.0? and how to code vba for multi data source dbf file?.
    Thanks
    roykana

Posting Permissions

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