I have a continous form based on 1 table.
On the form I have a button that sets the OrderBy to as follows
DataSource = Me.RecordSource
If Me.OrderBy = DataSource & ".PaymentDate DESC" Then
Me.OrderBy = DataSource & ".PaymentDate"
Exit Sub
End If
Me.OrderBy = DataSource & ".PaymentDate DESC"
This works fine most of the time but sometimes clicking the button doesn't
sort the data. This usually happens after data has been added to the
underlying table and Requery has been run on the form. I can exit the form.
re-open it and click the up or down arrows once then my sort button will
work.
Any ideas on how to make the button work all time?