In my invoice report, I would like to format DueDate the same way I am formatting InvoiceDate. See example in attached picture.
In Design View, the Report's InvoiceDate is formatted as Medium Date and the Report's DueDate cannot be formatted because the formatting tool is greyed out.
InvoiceDate comes from an existing date field of an existing table.
In the Query, if another field (State) = "NV", I want DueDate to be blank on the report. Otherwise, I want DueDate to be InvoiceDate + 60 as follows:
My IIF statement is working properly and the report is displaying either a blank or a date for DueDate.
I am assuming my problem lies in the way I am creating DueDate. In the Query, is there a better way to define DueDate so that the Report's formatting tool won't be greyed out - and will allow me to format DueDate as a Medium Date?
[imgnothumb]http://bytes.com/attachments/attachment/6923d1362431103/date-format-examples.jpg[/imgnothumb]
In Design View, the Report's InvoiceDate is formatted as Medium Date and the Report's DueDate cannot be formatted because the formatting tool is greyed out.
InvoiceDate comes from an existing date field of an existing table.
In the Query, if another field (State) = "NV", I want DueDate to be blank on the report. Otherwise, I want DueDate to be InvoiceDate + 60 as follows:
Code:
DueDate: IIf([State]="NV","",[InvoiceDate]+60)
I am assuming my problem lies in the way I am creating DueDate. In the Query, is there a better way to define DueDate so that the Report's formatting tool won't be greyed out - and will allow me to format DueDate as a Medium Date?
[imgnothumb]http://bytes.com/attachments/attachment/6923d1362431103/date-format-examples.jpg[/imgnothumb]
Comment