I have been for weeks trying to get some code to import data from an Access Table between two specified dates into an excel file. I am trying to set an invoicing system that use Excel on the front end and Access on the back end to store the data.
The table is simple enough with 5 columns, column 1 being the date the item was sold and the other 4 column showing the description of the product, how many items sold, the unit price and finally the total of the unit price and number sold.
I am trying to import data at the the end of every month, which the criteria is always the previous two month data starting at the 16th of the month in question and ending two month later on the 15th.
Eg. Today is Decmber 27th, so I need the data from October the 16th to December the 15th. Exactly 2 months worth of data. Next month will be November 16th to January 16th. etc, etc.
I preferably want to do this via excel if I can.
I have tried unsuccessfully to manipulate this code I got from the web.
Cheers
Dave
Bookmarks