Forum Discussion

LauraDiak's avatar
LauraDiak
Qrew Member
5 years ago

Syntax Error

Formula syntax error
There must be a valid expression inside parentheses.
AdjustMonth([Grease Location Opening Date],(ToNumber([FREQUENCY])/4),(  Date d)Firstdayofweek))

The "Grease Location Opening Date" will be manually entered.  I would like the "Week of First Collection" field to auto-populate by taking the opening date & adding the frequency (in weeks) to get to date of the first collection.  Then I would like that field to show the date for the first day of the week.  So, the "week of first collection" date will always be a Sunday. 


------------------------------
Laura Diak
------------------------------

3 Replies

  • Try this Laura:

    FirstDayOfWeek([Grease Location Opening Date]+[FREQUENCY])

    ------------------------------
    Adam Keever
    ------------------------------
    • LauraDiak's avatar
      LauraDiak
      Qrew Member
      The expression [Grease Location Opening Date] on the left hand side of the operator "+" is of type date while the expression [FREQUENCY] on the right hand side is of type number. The operator "+" cannot be used with these types of expressions.


      ------------------------------
      Laura Diak
      ------------------------------
      • AdamKeever1's avatar
        AdamKeever1
        Qrew Commander
        Change field type to duration and set value display to weeks:



        ------------------------------
        Adam Keever
        ------------------------------