+ Reply to Thread
Results 1 to 6 of 6

Creating Formula in Excel to reference Access DB without hitting "refresh"

Hybrid View

  1. #1
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    Creating Formula in Excel to reference Access DB without hitting "refresh"

    I have some raw data in an Access DB of Zip Codes, and then reference numbers associated with those codes.

    Right now, I have the zip code data in excel, but I am trying to pull it out of excel so that we can get the file size down, and the file can run smoother.

    The formula we are using (to reference the info currently in excel) is as follows

    LOOKUP(2,1/(($A17>=Origin_LB*1)*($A17<=Origin_UB*1)*($B17>=Destination_Zip_LB*1)*($B17<=Destination_Zip_UB*1)),ZoneGND)

    to compare origin and destination zip codes to return a number listed in Column E.

    I need this calculation to occur where excel goes to access finds the correct number and returns it to a cell in Excel, instantly when the zip codes are entered into A17 and B17. However I do not want to load the entire table into excel because of the amount of data it consumes.

    Is this possible???

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,740

    Re: Creating Formula in Excel to reference Access DB without hitting "refresh"

    Access Databases are capable of handling up to 2Gigs of data. Alternatively, you could link the Excel sheet to Access and then it would work as if it were an embedded table, but would not take up data storage.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    Re: Creating Formula in Excel to reference Access DB without hitting "refresh"

    ideally what I want excel to do is go into the database, find just the one value that it needs, and return that value..... Not load the entire DB into excel, and then have it go and reference the data in excel. (note this could be done with an SQL server instead of Access if needed)

    I do not know if what I want to do is possible though, especially without hitting the "refresh" button

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,740

    Re: Creating Formula in Excel to reference Access DB without hitting "refresh"

    If you wish to query Access from Excel, then maybe this solution will work for you. Since you have not shared your files, I am only guessing at solutions, but from what you describe this may be a direction you wish to go.

    http://datapigtechnologies.com/blog/...ry-from-excel/

  5. #5
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    Re: Creating Formula in Excel to reference Access DB without hitting "refresh"

    That is very close to what I would want to do.... just without pressing (in this case) a "Run Parameter Query" button.... and have it just load automatically.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,740

    Re: Creating Formula in Excel to reference Access DB without hitting "refresh"

    Since this is Mike Alexander's code, you may want to ask him. But a suggestion may be to put the code in a Worksheet Change event with your input cell as your target.

+ 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] Should "Trace Precedents" disappear after hitting save?
    By GIS2013 in forum Excel General
    Replies: 3
    Last Post: 09-29-2015, 04:47 AM
  2. [SOLVED] Clear userform after hitting "Submit"
    By KLG519 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2015, 06:33 PM
  3. = EMBED("Forms.ComboBox.1","") error "Reference not valid."
    By CatharinaCatharina in forum Excel General
    Replies: 2
    Last Post: 12-11-2014, 09:58 AM
  4. Pivot table won't refresh, "Reference is not valid" error
    By Telperion in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-20-2013, 01:18 PM
  5. Excel Userform - can't step into VBA code. Hitting "F8" just pops up the form
    By RAMguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2013, 10:51 AM
  6. Replies: 4
    Last Post: 06-15-2012, 03:00 AM
  7. [SOLVED] Hitting "tab" moves my cursor over one entire screen.
    By Eunice in forum Excel General
    Replies: 1
    Last Post: 04-25-2005, 01:06 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