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