
Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
Thanks Douglas and Rick for the timely reply. Actually, I made a mistake
when I posted my question. The records I want to use ORDER BY on are in a
textbox, not a combo box as I stated. The field is called DivName, but when
I set the continuous form's ORDER BY to DivName, the records still appear in
the order they are in the original table. Any possible explanation?
Thanks
> The form's OrderBy property has nothing to do with the sort order of the
> records in the combo box.
[quoted text clipped - 20 lines]
> >
> > Thanks
Rick Brandt - 18 Mar 2007 22:29 GMT
> Thanks Douglas and Rick for the timely reply. Actually, I made a mistake
> when I posted my question. The records I want to use ORDER BY on are in a
> textbox, not a combo box as I stated. The field is called DivName, but when
> I set the continuous form's ORDER BY to DivName, the records still appear in
> the order they are in the original table. Any possible explanation?
You also have to set OrderByOn to True. It is actually better to just bind the
form to a simple query that has the order by clause that you want.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Becky - 18 Mar 2007 23:37 GMT
Yes, that's it. I didn't know about the OrderByOn being set as well. Thanks
to Rick & fredg
fredg - 18 Mar 2007 23:00 GMT
> Thanks Douglas and Rick for the timely reply. Actually, I made a mistake
> when I posted my question. The records I want to use ORDER BY on are in a
[quoted text clipped - 28 lines]
>>>
>>> Thanks
How are you setting the form's Order By?
What do you actually do?
After you set the form's sort order to [DivName] did you set the
Form's OrderByOn = True by right-clicking on the form and selecting
Apply Filter/Sort?

Signature
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail