Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 check to see if a specific table exists

Author  Topic 

dpwhitedp
Starting Member

5 Posts

Posted - 2004-05-05 : 10:35:41
I need some code to determine if a table
has been created in the database. This is
variable so I would type in a table name and
it has to come back and tell me if it exists

KnooKie
Aged Yak Warrior

623 Posts

Posted - 2004-05-05 : 12:13:24
http://www.mvps.org/access/tables/tbl0001.htm


====
Paul
Go to Top of Page

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2004-05-09 : 23:31:31
Another way is to query the MSysObjects table in Access:
SELECT Count(Type) FROM MSysObjects
WHERE Name = 'table' AND Type = 1

Tim
Go to Top of Page
   

- Advertisement -