Проверка - Имеет ли форма секции (Заголовок | Примечание)
Private Function FormHasSections(frm As Form) As Boolean
Dim bVal As Boolean
On Error GoTo FormHasSections_Err
bVal = frm.Section(acHeader).Visible
FormHasSections = True
Exit Function
FormHasSections_Err:
FormHasSections = False
Err.Clear
End Function
|