Table Exist

  • Thread starter Thread starter Dominic Vella
  • Start date Start date
D

Dominic Vella

How do I check if table 'Company Details' exists before I start using it?

Thanks
 
How do I check if table 'Company Details' exists before I start using it?

Thanks

Using it in what context? VBA code? writing a query? building a form?
 
Oh, you are good!!

Dom

Chris O'C via AccessMonster.com said:
If DCount("*","msysobjects","name='Company Details' and type in (1,6)")>0
Then
MsgBox "table already exists"
Else
MsgBox "table doesn't exist"
End If


Chris
Microsoft MVP
 

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

Back
Top