Experts,
I have created a simple Access application that provides 6 reports (in datasheets) and 2 charts that will allow a Sales Manager to copy and paste into his monthly report.
However, the data that is used for this application will change every month. Data is exported out of a Business Intelligence system (ERP system) and is saved down as a CVS. Unfortunately, the Excel export option provides formatting, merged cells etc. that is not suitable.
I've saved down this exported file as Excel and have set up my main table, and several queries that pull specific information to create these reports. I am using Access XP and here are my problems:
1. This manager has to pull the data every month, from BI, in CVS, to be used in a company pivot table. How can I leverage that same file (which sits in a specific folder) to feed my reporting application? I tried using a link to the CVS file, but could not do so because it read it as text.
2. In opening the CSV to save it to an Excel format, I had problems exporting it into Access originally. I realized that there were leading spaces in the columns (my field names) that needed to be removed. I did this via a function, but how do I do this automatically?
So, bottom line, is that I need to open a CVS file in Excel, remove the leading spaces in the field names, and save it in an Excel format, then export it into my tblMonthlySales data, however, since this is done everymonth and the past month data is not needed anymore, before exporting into my table, I'll need to delete data that is in the Access Application. Whew!
I was thinking about creating a function/macro on the Manager's Excel toolbar to initiate the first part of this process, but how would I then get this cleaned Excel file into Access, while deleting the data in the Access table. Can that be done via the same Excel function macro? Or, can I do it all in Access via a command button on the main form that I have displaying all of his reports/datasheet with his sales info he will be copying and pasting into a formal report?
I'm lost here....
Help...
Thanks in Advance,
AliciaVee