enumerating objects

M

Mark

How do I refer to and compare objects in one database with those in another?
For example:

FOR EACH object in db1 with the same name and object type IN db2 THEN
'do something here

Thank you.
Mark

(p.s, I can't use just the object name since, in a moment of dumbness, I may
have given a form and a query, e.g., the same name)
 
G

Guest

Even if the names for objects are the same this will not affect your comparison. As long as you give VBA the object type EG Forms! or tables!, it woun't try and reference them as a single object
 
T

Tim Ferguson

How do I refer to and compare objects in one database with those in
another? For example:

Use the Containers and Documents objects... documented in help files.


Tim F
 
M

Mark

Thank you Russell. I was hoping there was a way to do this without
specifically referencing in the code each type of object.
Mark

Russell Lucas said:
Even if the names for objects are the same this will not affect your
comparison. As long as you give VBA the object type EG Forms! or tables!, it
woun't try and reference them as a single object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top