Hi everyone,
I have a series of check boxes all linked to date fields in a form. The check boxes have an 'after update' event that automatically places the date in the date field when the box is checked. There are also a second set of date fields which are dependent upon the first set - they're supposed to show a date two weeks after the date in the first field. And that's the part I'm stuck on. In the check boxes' 'after update' event procedures, I have this code:
and that works great. I tried to build the second code off the first, but so far, although I'm not getting any errors, I'm not getting my dates, either. For the second code, I wrote this in the 'after update' event procedure for the field named 'datefield' in the above example:
And that didn't work. The other bit I tried, with precisely the same results, was this:
Can anyone spot what I'm doing wrong, and/or have any insights into a bit of code that would put into a field a date 14 days after the date entered into another field?
Thanks,
Spherey
I have a series of check boxes all linked to date fields in a form. The check boxes have an 'after update' event that automatically places the date in the date field when the box is checked. There are also a second set of date fields which are dependent upon the first set - they're supposed to show a date two weeks after the date in the first field. And that's the part I'm stuck on. In the check boxes' 'after update' event procedures, I have this code:
Code:
If [check box] Then
[Datefield] = Date
Else
[Datefield] = Null
End If
Code:
If [datefield] Then
[Date of next action] = Date + 14
Else
[Date of next action] = Null
End If
Code:
If [datefield] = Date Then
[Date of next action] = Date + 14
Else
[Date of next action] = Null
End If
Thanks,
Spherey