+ Reply to Thread
Results 1 to 7 of 7

running powerQuery from MS Access

  1. #1
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    running powerQuery from MS Access

    hey guys,

    I have code in MS Access that opens an XL object and runs vba code that was recorded with the macro recorder by way of a test simulation in excel. the night is a bit long and I'm missing something very simple. Here is the part of my code that is erroring out:

    Please Login or Register  to view this content.
    the code is throwing error Method Range of Object_Global Failed at this line:
    Please Login or Register  to view this content.
    can you guys help me spot the error? I know it's very simple. There IS a table named Table 0 (2) so I think the issue is with the code Range($A$1). Sometimes I think a bit too much. thanks.

  2. #2
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: running powerQuery from MS Access

    It would help us a lot if you add a non-personalised spreadsheet to your request. You can't expect us to rebuild your spreadsheet from scratch!
    B/R
    Erwin
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  3. #3
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: running powerQuery from MS Access

    sorry Erwin. I hope this is what you're after. Obviously I can't include the actual URL being used for the powerQuery to be getting data from so I substituted that with www.site.com/r/r.php. =) let me know if this is what you'd like to see. thanks.
    Attached Files Attached Files
    Last edited by vba_php; 03-08-2020 at 01:27 PM.

  4. #4
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: running powerQuery from MS Access

    Sorry Adam,
    I cannot help you with this. Good luck with your search!

    B/R
    Erwin

  5. #5
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: running powerQuery from MS Access

    no big deal. it's almost done anyway. thanks for trying.

  6. #6
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: running powerQuery from MS Access

    Erwin,

    I did a workaround that is not 100% automated. I will look at it again later. thanks for the help man!

    Adam

  7. #7
    Registered User
    Join Date
    07-10-2022
    Location
    Moscow, Russia
    MS-Off Ver
    365
    Posts
    1

    Re: running powerQuery from MS Access

    This code tries to execute Range in Access, not in Excel.
    It should've been something like
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Using PowerQuery(2013) to Access and Update Sharepoint File
    By dsharman in forum Excel General
    Replies: 2
    Last Post: 05-31-2018, 01:39 PM
  2. powerQuery access to mySql server
    By guthrie in forum Excel General
    Replies: 0
    Last Post: 08-05-2017, 11:15 PM
  3. Running an access append query with parameters from Excel. Access version 2010
    By anthony1312002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2017, 04:48 PM
  4. Opening Excel from Access, running Code in Excel then export back to Access
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2012, 08:49 AM
  5. Running an Access macro via Excel on a shared Access db
    By koltregaskes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2011, 10:22 AM
  6. [SOLVED] Running SQL queries for Access using Excel VBA
    By ibeetb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2005, 03:05 AM
  7. Running Access Query from Spreadsheet
    By Bean123r in forum Excel General
    Replies: 0
    Last Post: 06-13-2005, 01:05 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1