Good Day All,
I just want to check if a local table (which actually gets imported) exists and can't find any information at all for that type of check.
Dim strSQL As String
On Error GoTo NoTable:
strSQL = DLookup("FieldName", "TableName")
NoTable:
If Err.Number = 3078 Then
MsgBox "No such table"
End If
Function TableExists(strTableName As String) As Boolean
On Error Resume Next
TableExists = (CurrentDb.TableDefs(strTableName).Name = strTableName)
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.