G
Guest
I'm an advanced user of Excel VBA, but a newbie to Access VBA, and I'm still
trying to figure out the method of specifying objects to perform actions
against them, etc. (for instance, I've already learned that, unlike Excel, in
Access you don't "select" the object you're about to act on).
Can someone please either point me to a online resource with explanations &
code samples for the object model in Access VBA (other than the built-in Help
files -- I've tried those) or give me code samples for the following actions
so I can try to figure it out from the code?
I'm wanting to create a script to perform this series of actions:
For each text file in a folder:
a) import a text file in a certain folder into a certain table
b) run a query against the table, and remove all records matched
c) search for certain text in the table (that is, in the newly imported
data) and replace it with the filename of the text file it was
imported from.
Loop
I know how to do the looping and how to pull the filenames out. I've
already got a semblance of code working for step a), but not sure how to run
the query and delete records in step b), nor how to specify the table as the
target for the action in step c).
Any guidance much appreciated -- Thanks!
trying to figure out the method of specifying objects to perform actions
against them, etc. (for instance, I've already learned that, unlike Excel, in
Access you don't "select" the object you're about to act on).
Can someone please either point me to a online resource with explanations &
code samples for the object model in Access VBA (other than the built-in Help
files -- I've tried those) or give me code samples for the following actions
so I can try to figure it out from the code?
I'm wanting to create a script to perform this series of actions:
For each text file in a folder:
a) import a text file in a certain folder into a certain table
b) run a query against the table, and remove all records matched
c) search for certain text in the table (that is, in the newly imported
data) and replace it with the filename of the text file it was
imported from.
Loop
I know how to do the looping and how to pull the filenames out. I've
already got a semblance of code working for step a), but not sure how to run
the query and delete records in step b), nor how to specify the table as the
target for the action in step c).
Any guidance much appreciated -- Thanks!