Hi,
I see these potential and certain causes:
- There seems to be a typo in the first field name of your DMax expression: Mikestone --> Milestone
- There is a " missing after the <.
- The value for the date criteria has to be in the right format.
Try this:
DMax("[Milestone Date]","MilestoneTable","idrProjectID=" & [idrProjectID] & " AND [Milestone Date]<" & CLng([Milestone Date]))
Servus
Karl
Access News
Access DevCon
Karl, I have resolved the issues using a subquery. I used http://allenbrowne.com/subquery-01.html for help. However, I had to delete 2 rows of data which were causing multiple records results in order to get this to work. I suspect that adding your corrections would have worked too because of this issue. This is why I will mark your answer as correct. Also, Mr. Sheridon, thank for your assistance as well.
Ian