I have two dates in my tblAcquire table.
It is called OrderDate and Invoicedate.
I would like to display the month from the "Orderdate" field but if that is unavailable, then use the "Invoicedat e" or vice versa, to determine the month from the same record(row).
ie if MonthOrder isnull then display Monthinvoice and vice versa.
My code in the Query displays one date only currently correctly
It does not add the month in the new field - only add -1
I need to filter on the Month field, in the criteria
Any suggestions please?
It is called OrderDate and Invoicedate.
I would like to display the month from the "Orderdate" field but if that is unavailable, then use the "Invoicedat e" or vice versa, to determine the month from the same record(row).
ie if MonthOrder isnull then display Monthinvoice and vice versa.
My code in the Query displays one date only currently correctly
Code:
MonthOrder: Format([OrderDate],"mm/yyyy") MonthInvoice: Format([Invoicedate]"mm/yyyy") Month: IIf([MonthOrder] Is Null Or [MonthOrder]="",[MonthInvoice]) Or IIf([MonthInvoice] Is Null Or [MonthInvoice]="",[MonthOrder])
I need to filter on the Month field, in the criteria
Any suggestions please?
Comment