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!

Sorting a form field

Status
Not open for further replies.

integritycare

Technical User
Mar 12, 2011
151
0
0
AU
Hi Guys,
Just a quick way of being able to sort any field on a form.
If the form property Shortcut Menu is set to "Yes" its ok, but when set to "No" it does not seem possible to do so. If the Shortcut menu is set to Yes then the form can be seen in design mode.
How can a sort be added without the design mode showing.

Thanks,

Integrity

 
How are ya ntegritycare . . .

If your looking to override the Shortcut Menu property, try the Order By property:
Code:
[blue]   Me.OrderBy = "[[b]FieldNameHere[/b]]" [COLOR=#4E9A06]     'Ascending[/color]
   Me.OrderBy = "[[b]FieldNameHere[/b]] DESC" [COLOR=#4E9A06]'Desccending[/color][/blue]

See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top