G
Guest
I created a calculated field and entered various
versions of the following expression:
DMax([Begin Date], "tblCredits", <=[Enter start date of current quarter])
It wouldn't work. I also tried:
DMax([Begin Date], "tblCredits", [Begin Date]<=[Enter start date of current
quarter])
It would say that the above expression are either incorrect or too complex
to evaluate. Any suggestions?
versions of the following expression:
DMax([Begin Date], "tblCredits", <=[Enter start date of current quarter])
It wouldn't work. I also tried:
DMax([Begin Date], "tblCredits", [Begin Date]<=[Enter start date of current
quarter])
It would say that the above expression are either incorrect or too complex
to evaluate. Any suggestions?
John Vinson said:I am designing a query that will return a list of students with their most
recent major that they have declared. To do this, I have set up the query to
group and sort the records ascending, by "Name", then by term "Begin Date."
Then, the query is supposed to return the Last of "Begin Date" before (<=) a
[user defined parameter date]. However, it returns all the records before
the date instead of just the most recent record. Am I doing something wrong?
Merely assuming that Last() means what you would think it ought to
mean.
The Last operator in Totals queries is all but useless. It returns the
last record *IN DISK STORAGE ORDER* - an order over which you have no
control, and which does not respond to any sort clauses you might have
put on the query.
You'll need to use DMax() to find the largest value of the field less
than the defined date.
John W. Vinson[MVP]