Order By

I

Ice Man

Hi all

I got a table called "payments" and it has a "duedate" field of type date
There is a form that displays the info ofthis table as a datasheet view

In form design -> datasheet view I try to put the Order by property to the
"duedate" field ... but no sorting happens.

what might be the problem

thanks
 
V

Van T. Dinh

I normally use the Query to order the Records as per Arvin's advice.

However, if you use the OrderBy Property of the Form, you also need to set
the Form's OrderByOn Property to True to have the Form's ordering activated.

Check Access VB Help on the OrderByOn Property.
 
I

Ice Man

Thanks Guys

I used this and it worked!

Private Sub Form_Open(Cancel As Integer)
Me.OrderBy = "duedate"
Me.OrderByOn = True
End Sub


Elie H Constantine.
 

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

Similar Threads


Top