How to use data from Excel file for criteria in an Access selection query?

General Ledger

Active Member
Joined
Dec 31, 2007
Messages
460
Dear All,

I won't ask if it is possible because there is always a way. How do I use values from an Excel 2003 file to supply criteria to an Access 2003 selection query?

I have a query that returns all the open accounts payable transactions. I want the query to only return records for certain vendor ID numbers. I have a list of the vendor ID numbers in Excel. How do I tell Access to run the selection query and return the records only for the vendor ID numbers listed in an Excel file? The ID numbers are subject to change, are not sorted in any particular order, and the count of ID numbers may change.

Thanks to all,

GL
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
First link the Excel file to your database, then in a query join the vendor ID to the corresponding field in the Access table.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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