Question macro to manipulate unstructured data like Excel does

glmleilei

New member
Local time
Today, 07:16
Joined
Apr 22, 2015
Messages
4
Hi all,
I have some tables need to be imported to Access, which is not well structured. For example:

report
4/05/2014
from SQL server
Name ID Add.....
aaa 111
bbb 222


To be more specific,I have 4 csv files, that need to be imported into Access.
1. I'm building 4 linked tables so users can update the table as needed. Then run queries based on these tables to produce report. But maybe there's a better way? the file name and location might be dymatic, so anything like 'getopenfile' would be easier instead of linked tables?
2. These data need to be clean up first to become a 'database table'. (Delete first 2 rows, delete some columns, remove duplicates etc.) I know how to do them in VBA Excel, but never used Macro in Access before. Please advise
Thank you !!
 
Last edited:
Welcome to the forum, I would still use Excel VBA to clean up the CSV files before importing. If you set a Reference in the Access VBA screen (Alt + F1, then select the Tools Menu and References, search down for the version of Excel on your PC) then you can use Excel VBA within the database.
 

Users who are viewing this thread

Back
Top Bottom