Подсветка строки в ленточной форме в ADP(!) |
Dim lngId As Integer Public Function fnA(cid As Integer) As Long fnA = 0 On Error Resume Next If Me.Dynaset.RecordCount > 0 Then If Me.Dynaset.AbsolutePosition > -1 Then If Me.Dynaset("id").Value = cid Then fnA = 1 Else fnA = 0 End If End If End Function Private Sub Form_Current() If Not Me.Recordset is Nothing Then lngId = Nz(Me.idTB, 0) Me.idTB.ControlSource = Me.idTB.ControlSource End If End Sub Private Sub Form_Open(Cancel As Integer) Dim cntrl As control For Each cntrl In Me.ОбластьДанных.Controls If cntrl.ControlType = acTextBox Then cntrl.FormatConditions.Delete cntrl.FormatConditions.Add acExpression, acEqual, "fnA([id])<>0" cntrl.FormatConditions(0).BackColor = 8965045 cntrl.FormatConditions(0).Enabled = True End If Next End Sub
http://www.sql.ru/forum/1084622/podsvetka-stroki-v-lentochnoy-forme-v-adp
Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |