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

SORTING A VB6 DATAGRID ON A PARTICULAR FIELD 1

Status
Not open for further replies.

Hiccup

Programmer
Jan 15, 2003
266
US
I can't seem to make my DataGrid to sort the records on a particular filed; in this case it's the "LastName" field in the "Personnel" table.

Can anyone tell me the property to set or the code to insert.

Thanks!
 
I'm not quiet sure but in the datagrid you have to modify your recordsource and refresh the grid.

peterguhl@yahoo.de
 

Adodc1.Recordset.Sort = "Personnel.LastName ASC"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top