auto change yes to no when a date if entered in another field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to force a status field of yes or no, to show no when an end date
in input into the relevant field
 
jfaz said:
I am trying to force a status field of yes or no, to show no when an
end date in input into the relevant field

-1 = Yes 0 = No.
 
In the control where you are entering the date, use the After Update event:

If Nz(me.YourDateField,"") = "" Then
Me.YourYesNoField = 0
Else Me.YourYesNoField = -1
End If
 
Create a Macro

Action = SetValue
Item = [Forms]![Table1]![Ok] ''''''Otherwise '[Forms]![YOUR FORM
NAME]![YOUR FIELD NAME(RELEVANT FIELD)]
Expression = Yes

Save your macro with a name. Assign that macro to your afterupdate
property for your relevant field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top