E
Eric
I am very experienced with Access and databases in general. I am also very
experienced with Excel and VBA for Excel. I have never written code directly
in Access.
I have code written in Excel that does basic data cleansing and prep. What I
need is to be able to run that code from within Access so that the data will
be arranged in Excel and then imported to the proper tables in Access so that
the import procedure doesn't have to be done manually.
I would appreciate it if someone would show me just a basic sample of code
that takes the contents (make it simple, just one piece of data - I can fill
in the rest) of an Excel file and puts the data in an Access table. Also,
where would you put the code in Access? Do you create a module and then make
a macro that executes the module. Oh yeah, and it would be great if all the
code to do the Excel work could actually be held in the Access file so I
don't have to run Excel code and then separately run the Access code.
Any help would be greatly appreciated.
Thanks - Eric
experienced with Excel and VBA for Excel. I have never written code directly
in Access.
I have code written in Excel that does basic data cleansing and prep. What I
need is to be able to run that code from within Access so that the data will
be arranged in Excel and then imported to the proper tables in Access so that
the import procedure doesn't have to be done manually.
I would appreciate it if someone would show me just a basic sample of code
that takes the contents (make it simple, just one piece of data - I can fill
in the rest) of an Excel file and puts the data in an Access table. Also,
where would you put the code in Access? Do you create a module and then make
a macro that executes the module. Oh yeah, and it would be great if all the
code to do the Excel work could actually be held in the Access file so I
don't have to run Excel code and then separately run the Access code.
Any help would be greatly appreciated.
Thanks - Eric