Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does Object Exist?

Status
Not open for further replies.

Kib

Programmer
May 17, 2001
58
US
What is the code to check if an object (table, query, form, etc) exists in the database?
 
Something i would quite like to know aswell.
I think you can do something like
For Each frm In dbs.Forms
if frm.Name = "Name that you're looking for then"
MyForm = frm
end if
Next frm

Hope it helps but if there is a better way i would like to know
Chirpy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top