G
Guest
Can someone give me a little syntax. I have a checkbox called Active that by default = True. I also have a control on the same form that is called InactiveDate. I have it working so that if a date is entered in the InactiveDate field, the Active checkbox automatically reverts to False. Cool. But the user can still go back and check the box as True, even if there is a date in the Inactive field. What I need is a way so that is if the user ploaces his cursor in the InactiveDate date field and removes the date, the Active check box will automatically revert back to true. Kind of toggle sort of thing. Here is part of the correct code, both are on AfterUpdate: Th
Active_AfterUpdate "Don't think this is working
If Me.InactiveDate And Not IsNull(Me.[InactiveDate]) The
Me.Active = Fals
ElseIf Me.InactiveDate And IsNull(Me.[InactiveDate]) The
Me.Active = Tru
InactiveDate_AfterUpdate ' This Works
If Me.InactiveDate And Not IsNull(Me.[InactiveDate]) The
Me.Active = False
Active_AfterUpdate "Don't think this is working
If Me.InactiveDate And Not IsNull(Me.[InactiveDate]) The
Me.Active = Fals
ElseIf Me.InactiveDate And IsNull(Me.[InactiveDate]) The
Me.Active = Tru
InactiveDate_AfterUpdate ' This Works
If Me.InactiveDate And Not IsNull(Me.[InactiveDate]) The
Me.Active = False