Sort Data on a Form and Subform

B

bg1

I have a form with a subform based on a query, how can I get the data to sort
on the main form, then another sort on the subform. I know this must be
basic, but I sure can't find it.
 
K

KARL DEWEY

If they both use the same query then sort both fields but make sure that the
high order sort is to the left of the other in design view before saving.
If they use separate queries then just sort each as needed.
 
J

John W. Vinson

I have a form with a subform based on a query, how can I get the data to sort
on the main form, then another sort on the subform. I know this must be
basic, but I sure can't find it.

Both the Form and Subform have an "Order By" property; these can be set
independently. You'll need to set the OrderByOn property to Yes.

It's rather unusual to have both a form and subform using exactly the same
query; my guess is that doing so will interfere with updatability, but I'm not
sure!
 
J

John W. Vinson

I'm new at this. Where do you people learn all this stuff from?

Here, and the other newsgroups, for one thing; forty years experience with
computers, twenty with databases, and ten with Access for another. Just paying
back some tiny part of all the help I've gotten over the years!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top