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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question OrderBy

Status
Not open for further replies.

bubba100

Technical User
Nov 16, 2001
493
US
Hi all-- Have a form bound to a table. The form has one text box. I am trying to have the info in the text box appear in order and the following code in the OnOpen event of the form asks for "Enter Parameter Value" of txtTypes. What have I overlooked?

Me.OrderBy = "[txtTypes]"
Me.OrderByOn = True
 
How about:
Code:
Me.OrderBy = Me!txtTypes
Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
You should use a field name, not a control name.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
[blush]

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
PHV you are correct again. Thanks FYI it should be the "." not "!
 
Thanks for the tip, but it will work with both.

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top