Expression Question

pinbotpinbot Texas
edited 8:31AM in FastReport .NET

I'm passing a datetime to a stored procedure.

Trying to format the expression to pass the current date - 1 month.

When I set the expression to:

[AddMonths([Date],-1)]

I get the following errors in my parameter:

Comments

  • pinbotpinbot Texas
    edited 8:31AM

    Nevermind.

    Writing it this way works: AddMonths([Date],-1)

    When I double-clicked on the "AddMonths" function from the list it inserted:
    [AddMonths(,)]

    So I figured it needed the outer brackets.

Leave a Comment