Hi Guys
Can someone tell me what is the way for finding out whether a table exists in the Microsoft Access database?
Thanks
What is the way for finding out whether a table exists in the Microsoft Access database?
361817-Nov-2012
Home / DeveloperSection / Forums / What is the way for finding out whether a table exists in the Microsoft Access database?
Anonymous User
03-Dec-2012Thanks Avadhesh
AVADHESH PATEL
18-Nov-2012given query solve your problem....
Dim db As Database
Dim i As Integer
Set db = DBEngine.Workspaces(0).Databases(0)
fExistTable = False
db.TableDefs.Refresh
For i = 0 To db.TableDefs.Count - 1
If strTableName = db.TableDefs(i).Name Then
'Table Exists
fExistTable = True
Exit For
End If
Next i