Guest_imported
New member
- Jan 1, 1970
- 0
I would like to identify those records in an inventory with qty on hand less than the reorder amount to appear red. All other records should appear black. Is there a method to do this?
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.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim Ctl As Control
Static LineNo As Integer
Const ltGrey = 16777215
Const White = 12632256
LineNo = LineNo + 1
If ((LineNo Mod 2) = 0) Then 'Even number line, Shade it
Me.Detail.BackColor = ltGrey
For Each Ctl In Me.Detail.Controls
Ctl.BackColor = ltGrey
Next Ctl
Else 'Odd number line, No Shade
Me.Detail.BackColor = White
For Each Ctl In Me.Detail.Controls
Ctl.BackColor = White
Next Ctl
End If
End Sub