P
Pete Straman Straman via AccessMonster.com
First Issue:
I have coded a form in VBA that automatically creates tables and queries,
appends, and deletes records. The process must be performed on 200 or so
mdb databases.
I copy the form from one mdb to the next, view the code, use find and
replace to change table and mdb name. Then I close the form and run the sql
embedded in the form.
Is there a way to automate this process so that when I copy the form to
another mdb it reads the mdb and table name in the database to which the
form is copied?
Example:
1) Form is working in an mdb named "060012 Desciption" with a table named
"060012"
2) I copy the form to another mdb named "060013 Description" with a table
named "060013"
3) I view code use find/replace to change to "060013" and change mdb name
used to make queries to "060013 Description"
Second Issue:
I must link to several different tables in a different mdb to perform my
appending process. It is a point and click operation each time I copy the
form to another database. I would like to code this directly into my form
as well.
I would like the form to make the links, run through all the appending from
these mdbs (which I already have coded), and then eliminate the links to
these database/tables.
Resolving one or both would help save me time.
Thanks in advance to anyone who has anything to offer.
I have coded a form in VBA that automatically creates tables and queries,
appends, and deletes records. The process must be performed on 200 or so
mdb databases.
I copy the form from one mdb to the next, view the code, use find and
replace to change table and mdb name. Then I close the form and run the sql
embedded in the form.
Is there a way to automate this process so that when I copy the form to
another mdb it reads the mdb and table name in the database to which the
form is copied?
Example:
1) Form is working in an mdb named "060012 Desciption" with a table named
"060012"
2) I copy the form to another mdb named "060013 Description" with a table
named "060013"
3) I view code use find/replace to change to "060013" and change mdb name
used to make queries to "060013 Description"
Second Issue:
I must link to several different tables in a different mdb to perform my
appending process. It is a point and click operation each time I copy the
form to another database. I would like to code this directly into my form
as well.
I would like the form to make the links, run through all the appending from
these mdbs (which I already have coded), and then eliminate the links to
these database/tables.
Resolving one or both would help save me time.
Thanks in advance to anyone who has anything to offer.