|
|
Проверка на наличие поля в наборе записей
Private Function IsFieldPresent(rs As DAO.Recordset, sFieldName As String) As Boolean
Dim objField As Field
On Error GoTo IsFieldPresent_Err
Set objField = rs.Fields(sFieldName)
IsFieldPresent = True
IsFieldPresent_Bye:
Set objField = Nothing
Exit Function
IsFieldPresent_Err:
Err.Clear
Resume IsFieldPresent_Bye
End Function
|
|