Sort by 2 fields

A

Anne

I have put text boxes above a continuous form and for the date using the
following code
Private Sub TransDate_Label_Click()
If Me.OrderBy = "TransDate DESC" Then
Me.OrderBy = "TransDate"
Else
Me.OrderBy = "Transdate DESC"
End If
Me.OrderByOn = True

End Sub

I have another text box above the transactionID to sort by transaction type.

I need sort by transaction type, by date or date by transaction type.

I know I can set it up in a query, but then I cannot change back and forth.
Is there a solution?
 
J

Jeanette Cunningham

You can supply a combo or option group for sorting options.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top