Easiest way is to try to use the table, and trap the error that occurs if it
doesn't exist.
If you don't like doing that, you can write a quick & dirty function that
loops through all of the tables, comparing to the name in question. Here are
two possibilities:
Function TableExists(TableName As String) As Boolean
Dim tblCurr As AccessObject
For Each tblCurr In CurrentData.AllTables
If tblCurr.Name = TableName Then
TableExists = True
Exit For
End If
Next tblCurr
End Function
Function TableExistsDAO(TableName As String) As Boolean
Dim dbCurr As DAO.Database
Dim tblCurr As DAO.TableDef
Set dbCurr = CurrentDb()
For Each tblCurr In dbCurr.TableDefs
If tblCurr.Name = TableName Then
TableExistsDAO = True
Exit For
End If
Next tblCurr
End Function
Note that if you're using Access 2000 or 2002, you'll need to ensure there's
a reference set to DAO for the second one to work, and if you're using
Access 97 or earlier, the first one will not work.