Вы находитесь на странице: 1из 1

If adoReservation.Recordset.Sort <> dgCurrent.Columns(5).

DataField & " ASC" Th


en
' Sort in ascending order; this block is executed if the
' data isn't sorted, is sorted on a different field,
' or is sorted in descending order.
adoReservation.Recordset.Sort = dgCurrent.Columns(5).DataField & " ASC"
Else
' Sort in descending order.
adoReservation.Recordset.Sort = dgCurrent.Columns(5).DataField & " DESC"
End If
' No need to refresh the contents of the DataGrid.

Вам также может понравиться