set rst=db.openrecordset("select * from dbo.sysobjects where id = object_id(N'[dbo].[tblKeyVerification]') and OBJECTPROPERTY(id, N'IsUserTable') = 1")
If rst.BOF And rst.EOF Then
MsgBox "table not exists"
Else
MsgBox "table exists"
End If
rst.Open "select * from dbo.sysobjects where id = object_id(N'[dbo].[tblKeyVerification]') and OBJECTPROPERTY(id, N'IsUserTable') = 1", cnn
If rst.BOF And rst.EOF Then
MsgBox "table myTable not existed"
Else
MsgBox "table myTable existed"
End If
rst.Close