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 TableExists(strTableName As String) As Boolean
On Error Resume Next
TableExists = (CurrentDb.TableDefs(strTableName).Name = strTableName)
End Function
str_SQL="Select Name From Msysobjects Where Name='" & table_name & "'"
objRecordSet.Open str_SQL, objConnection, adOpenStatic, adLockOptimistic
objRecordSet.MoveFirst
tbl = objRecordset.Fields.Item("name")
msgbox tbl
Dim catTables
Dim tblTable
Set catTables = CreateObject("ADOX.Catalog")
Set tblTable = CreateObject("ADOX.table")
Set cn = CreateObject("ADODB.Connection")
dbfile = "C:\Tek-Tips.mdb"
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & dbfile & ";"
Set catTables.ActiveConnection = cn
For Each tblTable In catTables.Tables
If tblTable.Name = table_name Then
TableExist=True
End If
Next
MsgBox TableExist
Set catTables = Nothing
Set tblTable = Nothing