pwdells
asked on
Data Import Script from Excel to Access
Is there a way to build a script in access to import all the pages in a workbook, into separate tables in Access? For instance, the pages in Excel would be Sales, Inventory, Returns, Demand Forecast. Then import those pages into their respective tables, tblSales, tblInventory, tblReturns, tblDemand.
How do I do that without running 4 separate import processes? In actuality, the above example is just a sample of what would have to be completed each week. We actually have about 25 workbook pages going into Access.
Thank you! :0)
How do I do that without running 4 separate import processes? In actuality, the above example is just a sample of what would have to be completed each week. We actually have about 25 workbook pages going into Access.
Thank you! :0)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can't see what the problem is with using multiple import commands, myself.
And no disrespect to cap1 but the code he's posted is just 4 import commands wrapped up in other code.
i know, but if you have 20 woksheets now and 25 worksheets on the next , how are you going to automate this?
going back to your codes and adding or commenting the import line commands?
going back to your codes and adding or commenting the import line commands?
ASKER
The end-users are blocked out of those functions for the application. The function has to be executed using one step.
then, try the codes i posted.
ASKER
Often there are functions in a process that may come easy to you or me, but not others. Historically, serious mistakes have been made due to repetition and confusion. If this automation process works, we may end up importing 50 tables. This is the only way the client is able to replicate with its customer's sales database, which is locked down considerably. The only way to import data is via .xlsx files or PDF. No ODBC is permitted.
I don't have any argument over your code cap. It's what I would do.
I was commenting on the requirement...
"How do I do that without running 4 separate import processes?"
Even in a loop each import process is separate from each other import process.
It now appears that the real issue is about using macro actions to do the same thing.
I was commenting on the requirement...
"How do I do that without running 4 separate import processes?"
Even in a loop each import process is separate from each other import process.
It now appears that the real issue is about using macro actions to do the same thing.
or about NOT using macro actions to do the same thing.
i really don't like when rules are being changed in the middle of the game.
ASKER
What do you mean by "rules are being changed in the middle of the game"??? My request is still the same and currently, I am attempting to implement it within my environment. :*?
ASKER
It worked! Thank you sooooo much Cap!
ASKER
I made a few changes to the variables, but that is always to be expected. Once I was able to get the script implemented in my environment, it worked without a hitch. I am so very thankful to Cap for helping me with this task!