VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

DataGrid Sort

Daniel Gaudin  (1 Submission)   Databases/Data Access/DAO/ADO   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Sorts the records in a datagrid form when clicking on the column header. Toggles between ascending/descending sort order.

Assumes
I assume that the connection is established and that the recordset has been opened. Besides that I would really appreciate your feedback. Let me know if you have other ideas on how to accomplish this. I'd specially like to know if there is a "nicer" alternative to the nested if-statement.

Side Effects
Not that I could see ;)

API Declarations
Dim WithEvents adoPrimaryRS As Recordset

Rate DataGrid Sort (15(15 Vote))
DataGrid Sort.bas

DataGrid Sort Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters