The answer to ur question would be found on Beginning Access 2K2 VBA from wrox press.The function "DatePart takes four arguments, two of which are optional:
DatePart(Interval, Date [, FirstDayOfWeek [, FirstWeekOfYear]])
Interval identifies which part of the date to return."
I would try "d" if i have wanted the days on a query. So try using the above
function on the grid of ur query.
rgds Penta
|