R
ram
Hi All,
I am asking for help with the code shown below. The setfocus at the end of
the code is not working.
i would like the code to remove the value just entered when it is over the
limit and have the focus stay on the csorent text box, so that a new value
can be entered.
Thanks in advance for any help
Private Sub CSORent_Exit(Cancel As Integer)
If Me.CSORent > Forms!START!qryActiveAgents!Availablecso Then
MsgBox (FormatCurrency((Me.Text29 -
Forms!START!qryActiveAgents!Availablecso)) & (" over cso limit"))
Me.ActiveControl = 0
Me.CSORent.SetFocus
I am asking for help with the code shown below. The setfocus at the end of
the code is not working.
i would like the code to remove the value just entered when it is over the
limit and have the focus stay on the csorent text box, so that a new value
can be entered.
Thanks in advance for any help
Private Sub CSORent_Exit(Cancel As Integer)
If Me.CSORent > Forms!START!qryActiveAgents!Availablecso Then
MsgBox (FormatCurrency((Me.Text29 -
Forms!START!qryActiveAgents!Availablecso)) & (" over cso limit"))
Me.ActiveControl = 0
Me.CSORent.SetFocus