D
Dan
Could someone tell me what is wrong with this:
program = DMax("[programID]", "[Program]", "[startDate] < " & Date & " AND
[ExpirationDate > " & Date)
It keeps returning null for this
If I enter: program = DMax("[programID]", "[Program]", "[startDate] > " & Date
It returns a value where the startDate is less than the date, not greater
than.
The record it returns from my table has the startDate = 5/12/05 and the
expirationdate = 12/30/05 and the current date is 5/14/05. So it is saying
5/12/05 > 5/14/05. both startDate and expirationDate is stored as the short
date in the tables and I have even tried to format the date as the short date
and still no luck
Also how would I sort the DateStarted field on a subform?
program = DMax("[programID]", "[Program]", "[startDate] < " & Date & " AND
[ExpirationDate > " & Date)
It keeps returning null for this
If I enter: program = DMax("[programID]", "[Program]", "[startDate] > " & Date
It returns a value where the startDate is less than the date, not greater
than.
The record it returns from my table has the startDate = 5/12/05 and the
expirationdate = 12/30/05 and the current date is 5/14/05. So it is saying
5/12/05 > 5/14/05. both startDate and expirationDate is stored as the short
date in the tables and I have even tried to format the date as the short date
and still no luck
Also how would I sort the DateStarted field on a subform?