J
JohnB
Hi.
Is it possible to have subform records appear sorted by two fields, in a
kind of sorting/grouping way (like you can do in a report)? The two fields I
want to sort by are PlacementYear and PlacementStageOrder. I want the subform
records to appear with the PlacementYear fields sorted descending and then,
within that, the PlacementStageOrder field appearing in ascending order. For
example:
PlacementYear PlacementStageOrder
2006 1
2006 2
2006 3
2005 1
2005 2
2004 1
2004 2
I've tried setting using Sort on these two fields in the query that supplies
the subform but this only seems to make the records appear in PlacementYear
decending order, even though I can run the query and see that it is doing
exactly what I want.
I then tried using Order By in the subforms properties but again, I only
seem to be able to get things sorted by one field - PlacementYear.
Is there a way of doing this? Perhaps by some On Load code for the subform?
Thanks, JohnB
Is it possible to have subform records appear sorted by two fields, in a
kind of sorting/grouping way (like you can do in a report)? The two fields I
want to sort by are PlacementYear and PlacementStageOrder. I want the subform
records to appear with the PlacementYear fields sorted descending and then,
within that, the PlacementStageOrder field appearing in ascending order. For
example:
PlacementYear PlacementStageOrder
2006 1
2006 2
2006 3
2005 1
2005 2
2004 1
2004 2
I've tried setting using Sort on these two fields in the query that supplies
the subform but this only seems to make the records appear in PlacementYear
decending order, even though I can run the query and see that it is doing
exactly what I want.
I then tried using Order By in the subforms properties but again, I only
seem to be able to get things sorted by one field - PlacementYear.
Is there a way of doing this? Perhaps by some On Load code for the subform?
Thanks, JohnB