Code 2
Code 2
If IsNull(Me.txtLoginID) Then
Me.txtLoginID.SetFocus
Me.txtPassword.SetFocus
Else
Else
End If
End If
End Sub
==================
With blinkingLabel
End With
End Sub
With Me.Alert
'If the color is black, the color is red otherwise the color is black!
End With
End Sub
If IsNull(Me.byDate) Then
Me.byDate.SetFocus
Else
Me.Label1.ForeColor = vbBlack
stDocName = "rpt one" 'if date is not null then open report
End If
End Sub
Private Sub Form_Timer()
Me.Label1.ForeColor = vbYellow
Else
Me.Label1.ForeColor = vbRed
End If
End Sub
=[QTY2]*[UCOST2]
If IsNullMe.TOTBAL.Value "5")
Me.TOTBAL.SetFocus
Else
Me.Label1.ForeColor = vbBlack
End Sub
=Nz([UNITCOST],0)*1*Nz([JAN],0)*1+Nz([FEB],0)*1+Nz([MAR],0)*1+Nz([APR],0)*1+Nz([MAY],0)*1+Nz([J
UN],0)*1+Nz([JUL],0)*1+Nz([AUG],0)*1+Nz([SEP],0)*1+Nz([OCT],0)*1+Nz([NOV],0)*1+Nz([DEC],0)*1
=[UNITCOST]*(Nz([JAN],0)*1+Nz([FEB],0)*1+Nz([MAR],0)*1+Nz([APR],0)*1+Nz([MAY],0)*1+Nz([JUN],0)*
1+Nz([JUL],0)*1+Nz([AUG],0)*1+Nz([SEP],0)*1+Nz([OCT],0)*1+Nz([NOV],0)*1+Nz([DEC],0)*1)