Sorting asending/descending in forms

G

Guest

I have a form that I need to block any sorting, except for my ID field. What
is happening is they go into form view, hit sort desending in the address
field and change all my records. Then when they get out of form view it
saves and just changed all my documents (in word) that are link for address
and names. How can I stop this??
 
J

Jeff L

In the On Unload event of your form, put Me.Orderby = "". That way
they can sort it however they want, but when they exit the sorting
criteria is eliminated.
 

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