Carlit007
New Member
- Joined
- Sep 5, 2018
- Messages
- 47
- Office Version
- 2019
- 2016
- 2013
- Platform
- Windows
- MacOS
Hi I am totally new to Ms access and apparently I have been using the wrong application(Excel) to build my databases lol better late then never
so far I have learned the basics of creating both tables and form but am having issues when importing new data.
I am trying to import new data from an excel report to an existing table called tblMyProperty the issue I am having when using the import wizard is that the headers in the excel report contains a “.” At the end which I guess is a no no for access tables
unfortunately the report that I have to import frequently has headers such as;
Admin no.
serial No.
note: I have created all my fields in my access tables to match the data that gets imported from excel what I'm trying to avoid is having to manually remove illegal characters from the excel heathers file every time.
I would like to know if by using vba I could make a button in a form that lets me import data with a file open dialog that lets me choose the file to import and to what table to import to.
and upon import it clears any ilegal character from the excel headers so that it gets properly imported into the right field
thanks in advance
so far I have learned the basics of creating both tables and form but am having issues when importing new data.
I am trying to import new data from an excel report to an existing table called tblMyProperty the issue I am having when using the import wizard is that the headers in the excel report contains a “.” At the end which I guess is a no no for access tables
unfortunately the report that I have to import frequently has headers such as;
Admin no.
serial No.
note: I have created all my fields in my access tables to match the data that gets imported from excel what I'm trying to avoid is having to manually remove illegal characters from the excel heathers file every time.
I would like to know if by using vba I could make a button in a form that lets me import data with a file open dialog that lets me choose the file to import and to what table to import to.
and upon import it clears any ilegal character from the excel headers so that it gets properly imported into the right field
thanks in advance