Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function DoesTableExist(pTableName As String) As Boolean
'*******************************************
'Name: DoesTableExist (Function)
'Purpose: Determine if table name exists
'Inputs: from debug window ? DoesTableExist("test1")
'Output: True or False
'*******************************************
Dim db As Database
Dim td As TableDef
Set db = CurrentDb
For Each td In db.TableDefs
DoesTableExist = IIf(td.Name = pTableName, True, False)
If DoesTableExist = True Then GoTo Exit_Function
Next td
DoesTableExist = False
Exit_Function:
db.Close
Set db = Nothing
End Function