I am attempting to add an audit field that rounds to the nearest month. Arguments for the Date() function appear to be non-existent.
Excel Date() function requires three arguments - year, month, day. When I try to use these arguments in a field's Default Value expression builder, I receive the following message: "The expression you entered has a function containing the wrong number of arguments".
Here is the formula I am trying to use:
Here is the working excel formula:
Thank you for the help.
Excel Date() function requires three arguments - year, month, day. When I try to use these arguments in a field's Default Value expression builder, I receive the following message: "The expression you entered has a function containing the wrong number of arguments".
Here is the formula I am trying to use:
Code:
=IIf(Day(Now())>=1 And Day(Now())<=15, DATE(YEAR(NOW()),MONTH(NOW()),1), DATE(YEAR(NOW()),MONTH(NOW())+1,1))
Here is the working excel formula:
Code:
=IF(DAY(NOW())>=1 AND DAY(NOW())<=15,
DATE(YEAR(NOW()),MONTH(NOW()),1),
DATE(YEAR(NOW()),MONTH(NOW())+1,1))
Thank you for the help.