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

sorting txtboxes

Status
Not open for further replies.

khanh

Programmer
Joined
Aug 15, 2002
Messages
6
Location
US
Hello,
We have an application that retrieved information from database and populate text boxes,(for example txtId, txtLastName, txtFirstName, txtDepartment...) Users want a button next to each text box, so they able to sort by ID, LastName Firstname or Department...
1.How do you set sort to txtbox?
2.We also have a txtbox for use as comment. Some users want to switch the txtbox into column such as excels, when needed. How can I achieve this?

Please help, thanks in advance.

Khanh
 
Set a Sort command next to each text box. When user click on this command, the sql statement is executed:

"Select * from yourtable order by '" & txtId.txt & "'"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top