Access/Excel Query link with Criteria

Rich_A

New Member
Joined
Apr 21, 2020
Messages
15
Office Version
  1. 2019
Platform
  1. Windows
Hi Everyone, I've hit a bit of a wall here and hoping someone can help. I have an Access query with criteria established to limit the output to a more digestible size. When I link this query to Excel, though, it is disregarding the Criteria and bringing in the full query. I'm wondering if this is a setting in Excel that will allow me to only bring in the Query per the criteria established in Access, and maintain the link (as opposed to exporting it every time). Thanks to anyone who may be able to help - warmly appreciated.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How are you linking?
Are you linking, or just using Data/From Access
 
Upvote 0
Hi Welshgasman, thank you for the reply. I was linking through this process:

Data -> Get Data -> From Database -> From Microsoft Access Database
Selected the Query (with criteria already applied in Access) in the Navigator dialog box
When the preview appears, and the subsequent data uploads, the full Query is uploaded rather than the limited version the criteria provided.

Thank you for any advice you can provide
 
Upvote 0
OK, that is how I have just done it and only the relevant data was extracted.?

However if I went back into the query and changed the criteria and saved the query, that change was not reflected in Excel. It is more of a snapshot, not linked as you can from Access to Excel.?

So I would double check your criteria.?
What is the criteria BTW ?
 
Upvote 0
that actually is very helpful because if you can do it on your end but i can't do it on this end - at least it can be done (which i wasn't sure of before). My working theory is it is a setting on my end.

The Criteria I am using is text based and eliminates years from our company "job numbers". For example, a 2019 job number is 19-0001-RA. I've set criteria to eliminate that year using: Not Like "19-*"

I eliminate additional years using And Not Like "18-*" etc. etc.
 
Upvote 0
Well I tried a query that asked or a parameter and that produced an empty table.
Now I have tried a query that has criteria and produces 8 records in Access, but nothing comes across into Excel. :unsure:

Not something I have used TBH, always the other way.? I'm on 2007 BTW.
 
Last edited:
Upvote 0
i'm with you. thinking a gool old fashioned export may be in order. hate to have the extra step, but at least it will work
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,011
Members
448,935
Latest member
ijat

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top