import an excel file to an existing table and add fields
Posted on 2014-11-17
i would like to import an excel file to an existing table in access. (i create a button for this import in form 1)
how do i write a VBA code so that:
1. after i click the button, it will open a dialog box that the user will choose from which folder he wants to import the file.
2. a message box will popup if the import has succeed (or not succeed)
3. i would like to add and connect some fields (which are in the form 1, like ID_Order, Name_Order) to the table after the import has succeedded