Sorting a Continous Form

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I'm trying to Sort a Continous Form on 2 Fields, MenuDay (Combobox) and
StartTime (Date/Time) field. I'm using the Order property on the form
and have entered such, but it doesn't work....

"MenuDay, StartTime ASC"

Any Suggestions?
Thanks
DS
 
DS said:
I'm trying to Sort a Continous Form on 2 Fields, MenuDay (Combobox)
and StartTime (Date/Time) field. I'm using the Order property on the
form and have entered such, but it doesn't work....

"MenuDay, StartTime ASC"

Any Suggestions?
Thanks
DS

The OrderBy property is useless unless you also set the OrderByOn property
to True and guess what? That property is not shown in the property sheet and
has to be set via code. The easiest thing to do is to bind the form to a
query or SQL statement and set the order in that. Otherwise in the form's
Open event...

Me.OrderBy = "MenuDay, StartTime"
Me.OrderByOn = True
 
Rick said:
The OrderBy property is useless unless you also set the OrderByOn property
to True and guess what? That property is not shown in the property sheet and
has to be set via code. The easiest thing to do is to bind the form to a
query or SQL statement and set the order in that. Otherwise in the form's
Open event...

Me.OrderBy = "MenuDay, StartTime"
Me.OrderByOn = True
Great, I took your advice and it worked fine.
Thank You.
DS
 

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

Similar Threads

IIf Visible Statement 3
Query Help 2
Sort fields on continous form. 1
Sort continous form by 2 colums 5
OrderBy OrderByOn - Continous Form Sorting 2
Order By 3
DateAdd 5
Combobox time 3

Back
Top