Solved Convert excel formula to expression (1 Viewer)

Kayleigh

Member
Local time
Today, 09:38
Joined
Sep 24, 2020
Messages
706
I have a formula which would add three years to the date in cell. But struggling to convert this to an expression to be used as a conditional formatting rule in Access forms.
This is the formula: =DATE(YEAR(U14) + 3, MONTH(U14), DAY(U14))
U14 would be fldDBSIssueDate in Access.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 04:38
Joined
Feb 19, 2002
Messages
43,196
Replace "U14" with the name of a field.
Replace the Date() function with cDate() and include the correct delimiters.

=cDATE(YEAR(fldDBSIssueDate ) + 3 & "/" & MONTH(fldDBSIssueDate & "/" &, DAY(fldDBSIssueDate ))
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:38
Joined
May 7, 2009
Messages
19,226
Instead of 4 functions, use only 1:

=DateAdd("yyyy", 3, [fldDBSIssueDate])
 

Users who are viewing this thread

Top Bottom