I have a report with a TextBox formatted as Short Date - the TextBox [Txt12] contains:
Code:
=DateSerial(Year(Date()),12,1)
in the Data Control Source
for My DMAX In another TextBox I have:
Code:
=DMax("[Revquota]","[Qury1TestQuotaby5]","[DateOfChange]<=" & [Txt12])
There is a Record for [DateOfChange] @ 11/1/2014 this is the record that should be returning the [RexQuota] - the Report shows blank
I used Month() to return the Month Numbers - and I get a result, but the problem is: there will be more than one year of data - so in the previous example, if there was a record on 12/1/2013 I would not want that returned.
([DateOfChange] is a Date/hour format in the Table)
Hope this is clear - I will of course have a follow up after this.