+ Reply to Thread
Results 1 to 3 of 3

Updating Queries

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2013
    Posts
    75

    Updating Queries

    Hi, 2 questions regarding the updates of Queries...

    I have been redoing some of my spreadsheets as of late, and one of the sources of information that my spreadsheet uses has changed from a static data file that I had to download and have my spreadsheet reference it to a JSON file

    Now the Json Data is not a big deal, I just used excels query from web sources function since you can read the output as a json file now... so getting the data is not the problem

    What is the problem is that the data is rather large, and if need be I can let my workbook pull the data every time I log in but I would much rather have it set up so that it only refreshed the data from said query when say so... I was thinking of just putting an activex button on a sheet that has the refresh command in it when pressed.... and that being the only time that particular query gets refreshed...

    Having said that I do have queries that will need to be refreshed very often... so I cant just turn off all refreshing, I need to be able to do it with just a few of my workbooks queries.

    Is this possible? WHich brings me to my second question... what would be the best way to refresh a single query on command? I had always used the .refreshall in a command button but now that I have more queries I would rather not do that....

    would it be best to take the json query and define it as a function and then refresh that function?

    Thanks for your help.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Updating Queries

    You refresh the object only.
    If its a combo, cboBox.requery.
    If the whole form, me.requery.

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2013
    Posts
    75

    Re: Updating Queries

    So how exactly do I do that with a query I made through the data tab... Im not sure what sort of object it would be other than a query I named listregions

    heres the code in the advanced editor

    Please Login or Register  to view this content.
    Do I simply declare it something before that code? like (listregion) =>

    or what should I do? sorry my knowledge is lacking in this area... some areas I am good at some areas I am not so much

    Thanks

+ 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. Pivot Table updating before queries
    By rs1aj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2015, 03:26 PM
  2. Access Query, Based on queries, based on queries
    By Xcelguy in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-13-2013, 10:15 AM
  3. Replies: 0
    Last Post: 01-21-2013, 12:47 PM
  4. [SOLVED] Updating Queries without Rebuilding
    By jake.masters in forum Access Tables & Databases
    Replies: 4
    Last Post: 10-02-2012, 11:48 AM
  5. Help with automatic chart updating/auto updating today function
    By Tux2424 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-26-2012, 04:45 PM
  6. Embedded Access queries in Excel - if the database moves, how to update queries?
    By Paul_mcc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 07:52 PM
  7. Updating Showcase Queries
    By simpleminds in forum Excel General
    Replies: 2
    Last Post: 11-28-2006, 12:57 PM

Tags for this Thread

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