Expression Question

pinbotpinbot Texas
edited 6:50PM 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 6:50PM

    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.