Solved

Pass through Query

Posted on 2010-11-16
4
406 Views
Last Modified: 2012-06-27
If I run a query (let's call it "Accounts") against a pass-through query and I have already executed the pass-through previously, does the pass through get executed again every time  I run "Accounts"?
0
Comment
Question by:chaffee007
  • 2
4 Comments
 
LVL 28

Expert Comment

by:omgang
ID: 34150286
I believe so but I haven't actually tested it.  I would not think the return recordset would be cached.
In most situations I'd think we'd want the pass-through query to execute every time to capture any recent changes.

OM Gang
0
 

Author Comment

by:chaffee007
ID: 34150312
Yes I need to Just snapshot the data.  Otherwise I need to create another Make Table Query to create my shadow table.  I would give you the points if you can confirm it.
0
 
LVL 28

Expert Comment

by:omgang
ID: 34150579
This is something you can test easily yourself.  Run a pass-through query on a table.  Edit a record in the table.  Run the pass-through query again.

If you want a snapshot of the dataset returned by the pass-through query then you should use a temp table.

OM Gang
0
 
LVL 9

Accepted Solution

by:
Armen Stein - Microsoft Access MVP since 2006 earned 500 total points
ID: 34157986
Yes, a passthrough query retrieves fresh data from the server every time it runs.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now