Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Order by doesn't work

Status
Not open for further replies.

Smarty

Programmer
Apr 12, 2001
191
0
0
BE
I have a form with 3 subforms in it. The order by needs to be X_Id DESC, but he keeps it displaying (continious form) by X_Id ASC... In other forms with subforms it works fine, but in my mainform it doesn't ... Anyone familiar with this problem??
 
Smarty,

Ensure that your OrderByOn property has been set to True on the form, otherwise your sort will not take effect, even if the string has been populated. Also, in some instances, I've had to use the tablename.field name ASC format to effect an orderby clause. I generally call a routine on Form_Open that sets the OrderBy= & OrderbyOn= properties.

lldevel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top