i have one field named [TOTAL CORRECTIVE ACTIONS] and..... if this field is greater than 29 then i have a msg asking user "How many Corrective Actions have you completed?" and this automatically setfocus to [NUMBER OF CORRECTIVE ACTIONS]. now so far so good but if user attempts to enter a value in [NUMBER OF CORRECTIVE ACTIONS] field ...it still prompts them to enter daty in that field.... this code is in the got focus event of the save command button.
If Me![TOTAL CORRECTIVE ACTIONS] >= 30 then
Me![NUMBER OF CORRECTIVE ACTIONS] >= 0
else
MsgBox "How many Corrrective Actions have you completed?", vbOKOnly
Me![NUMBER OF CORRECTIVE ACTIONS].SetFocus
End If
Please help me out. Thanks to all in advance.
[This message has been edited by gino (edited 05-11-2000).]
If Me![TOTAL CORRECTIVE ACTIONS] >= 30 then
Me![NUMBER OF CORRECTIVE ACTIONS] >= 0
else
MsgBox "How many Corrrective Actions have you completed?", vbOKOnly
Me![NUMBER OF CORRECTIVE ACTIONS].SetFocus
End If
Please help me out. Thanks to all in advance.
[This message has been edited by gino (edited 05-11-2000).]