Can anyone help me with the code for a command button in access where I will get the same option as you would when you right click in the access database and then click on the import table option.
Thank you Wemeir. It works. But it gives me an error when I select teh excel file that I am trying to import. The error is subscript out of range. I get this error after I select teh worksheet I am trying to import then click next, and again when I try to store it in a table.
Any suggestion how to tackle this. So far I tried to timport the file by keeping the excel file open but that did not work. I am guessing it maybe the size, but the size I do not have any control over.
Once again thank you for your first code that works like a charm though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.