"Smriti Dev" wrote
I'm creating a form based on query
and I want the appointments to be
ordered from top to bottom with
the top appointments being closest
to the currrent date.
Are you showing only future appointments? If so, in the Query Builder,
select Ascending in the Sort line under the date / time field of the
appointment. (And, I feel obligated to mention, that field should not be
named Date, because date is an Access reserved word.)
If you are showing appointments that are already past _and_ in the future,
you will have to come up with a different display scheme, something like
using the ABSolute of the DateDiff, if that gives you what you want.
Larry Linson
Microsoft Access MVP