Hey all, first post here. I've browsed this site numerous times and now I'm utterly stuck on this issue and don't know what to do, so any help is appreciated.
I currently have an excel file that pulls some raw data from an access file. I'm trying to get some code or find out how I can have the Excel file query an Access query using a start date and an end date.
For Example:
The excel file has a start date in cell A1, and an end date in A2. When a button is clicked a macro runs that connects to an Access file. It then goes to an access query called pallets, where it collects all data starting from, obviously the start date that is in cell A1 up to the date in A2, and puts all this data into the excel sheet on cell C2.
Currently the way im doing this is by creating a new macro for each month that connects to a query in Access which filters between dates. This means each month I have to create a new query and macro causing the excel file to grow ever bigger.
Please can anyone give me hints, tips, code....anything that can help me with this. Many thanks in advance.
I currently have an excel file that pulls some raw data from an access file. I'm trying to get some code or find out how I can have the Excel file query an Access query using a start date and an end date.
For Example:
The excel file has a start date in cell A1, and an end date in A2. When a button is clicked a macro runs that connects to an Access file. It then goes to an access query called pallets, where it collects all data starting from, obviously the start date that is in cell A1 up to the date in A2, and puts all this data into the excel sheet on cell C2.
Currently the way im doing this is by creating a new macro for each month that connects to a query in Access which filters between dates. This means each month I have to create a new query and macro causing the excel file to grow ever bigger.
Please can anyone give me hints, tips, code....anything that can help me with this. Many thanks in advance.