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 FieldExists(strTableName As String, strFieldName As String) As Boolean
On Error Resume Next
FieldExists = (CurrentDb.TableDefs(strTableName).Fields(strFieldName).Name = strFieldName)
End Function
Function TableContainsField(SelectTableName, SelectFieldName) As String
'Works with linked tables
Dim cn As New ADODB.Connection
Dim rs As ADODB.Recordset
Dim strTempList As String
Set cn = CurrentProject.Connection
Set rs = cn.OpenSchema(adSchemaColumns, _
Array(Empty, Empty, SelectTableName, SelectFieldName))
If Not rs.EOF Then
TableContainsField = "Yes"
Else
TableContainsField = "No"
End If
End Function