I’m having trouble calculating a date field and was hoping someone could assist me.
I have two bounds fields on a form – both fields are a “medium date” format both in the table design and the form view properties.
Field #1 = is a user entered date
I want Field #2 to be = Field #1 plus 18 months (i.e. 547 days)
In the form properties for Field #1 I have the “AfterUpdate” option set to run a macro.
The macro uses the SETVALUE option as follows:
Item [Field #2]
Expression =[Field #1]+547
Now in theory when Field #1 is updated, the macro should add 547 days to Field #1 and put that new date into Field #2. However, the only date it returns in Dec-30-1899 – which I know is the “zero” date for how Access calculates dates.
What am I doing wrong?
Any assistance will be much appreciated.
I have two bounds fields on a form – both fields are a “medium date” format both in the table design and the form view properties.
Field #1 = is a user entered date
I want Field #2 to be = Field #1 plus 18 months (i.e. 547 days)
In the form properties for Field #1 I have the “AfterUpdate” option set to run a macro.
The macro uses the SETVALUE option as follows:
Item [Field #2]
Expression =[Field #1]+547
Now in theory when Field #1 is updated, the macro should add 547 days to Field #1 and put that new date into Field #2. However, the only date it returns in Dec-30-1899 – which I know is the “zero” date for how Access calculates dates.
What am I doing wrong?
Any assistance will be much appreciated.