I have posted in the forms tab for my import form. but then i saw this tab and it would be a better spot. I have completely redesigned my form from what i previous said. I figured it was to complex for the amount of importing to be done at once. I figured i might as well do it one table at a time. much easier. so i have set up my form like this:
.........cbobox select table..... ...button refreshtablelist.....
..checkbox.. excel
..checkbox.. txtfile
...........txtbox........ ...buttongetfile...
..button..import...
So i want to select a table to append to in my combo box then select excel or txt file im importing and the select my file. the file path wil lgo into the txt box.
then i click import and the magic happens.. but i dont know how to write the code to do thimporting based on the two cases. now i have attached a same db with the form for you to look at. The tables fnction i call upon gets tables and queries. is there way to make it get just tables? I have also set up the code to best of my ability to what i think should be the right steps, but i dont know where to start with the code. I would like to aviod appending queries and do it all in one go rather then making dummy tables then making appending Attachment 8678