carmenlisa
Technical User
I need to import data from spreadsheets into Access on an ongoing basis. I know how to set up the queries themselves. But there are 2 things I do not know how to do.
1. I would normally tell the query where to look for its data, that is the name and location of the spreadsheet. But I will be given spreadsheets of unknown names, sometimes more than one at a time. Is there an easier way that taking the spreadsheets one by one, give each of them a pre-set name, run the queries, change the name of the spreadsheet, then rename the next spreadsheet with the pre-set name and keep cycling this way through the spreadsheets? Is there a way to tell the queries to run on all spreadsheets at a certain location, or with a certain date, or with part of the file name that is maybe the same?
Second, is there a way to tell a query to import the data from a spreadsheet only if, say, cell A1 in sheet1 equals 0? That is, this supposes that I already know how to import from all spreadsheets in a certain folder, or whatever, but that I only want to get data from those will the correct entry in a specific cell in the file?
1. I would normally tell the query where to look for its data, that is the name and location of the spreadsheet. But I will be given spreadsheets of unknown names, sometimes more than one at a time. Is there an easier way that taking the spreadsheets one by one, give each of them a pre-set name, run the queries, change the name of the spreadsheet, then rename the next spreadsheet with the pre-set name and keep cycling this way through the spreadsheets? Is there a way to tell the queries to run on all spreadsheets at a certain location, or with a certain date, or with part of the file name that is maybe the same?
Second, is there a way to tell a query to import the data from a spreadsheet only if, say, cell A1 in sheet1 equals 0? That is, this supposes that I already know how to import from all spreadsheets in a certain folder, or whatever, but that I only want to get data from those will the correct entry in a specific cell in the file?