Public Function FieldExists(tableName As String, fieldName As String) As Boolean
On Error GoTo FieldExists_Exit
Dim fld As Field
For Each fld In CurrentDb.TableDefs(tableName).Fields
If fld.NAME = fieldName Then
FieldExists = True
Exit For 'Or Exit Function
End If
Next
FieldExists_Exit:
End Function