Filter w/order by

J

John Keith

My form has the order by property set to "[Birth Date] DESC" so that the
youngest is first.

The initial load with out a filter displays the rows in the proper order.
Via code using an unbound textbox in the header section, the filter is set
and activated. The rows that show in the detail section all match the
filter, but the order by is seemingly ignored. How do make a filtered record
set being shown in the form continue to use the order by?
 
J

John Keith

Even though the help screens say that OrderByOn property is for reports...
This is also necessary for forms.
 
D

Douglas J. Steele

Use a query with the appropriate ORDER BY clause on it rather than the table
as the form's RecordSource.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


John Keith said:
Even though the help screens say that OrderByOn property is for reports...
This is also necessary for forms.

--
Regards,
John


John Keith said:
My form has the order by property set to "[Birth Date] DESC" so that the
youngest is first.

The initial load with out a filter displays the rows in the proper order.
Via code using an unbound textbox in the header section, the filter is
set
and activated. The rows that show in the detail section all match the
filter, but the order by is seemingly ignored. How do make a filtered
record
set being shown in the form continue to use the order by?
 

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