N
Neil Crawford
Dear all,
I tried amending this DAO code to work as ADO but failed
miserably. Does anyone know the equivalent? Thanks,
Neil
Public Function tableexists(tblname As String)
Dim db As Database, t As String
Set db = CurrentDb()
On Error Resume Next
t = db.TableDefs(tblname).Name
If Err = 3265 Then 'name not in table
collection
tableexists = False
Else
tableexists = True
End If
db.Close
End Function
I tried amending this DAO code to work as ADO but failed
miserably. Does anyone know the equivalent? Thanks,
Neil
Public Function tableexists(tblname As String)
Dim db As Database, t As String
Set db = CurrentDb()
On Error Resume Next
t = db.TableDefs(tblname).Name
If Err = 3265 Then 'name not in table
collection
tableexists = False
Else
tableexists = True
End If
db.Close
End Function