I have a Access form that shows a table in a subform. The table is in datasheet view. Is there anyway I can disable the sort asc/desc on all the fields?
The reason I do not want them to sort it is because it is based on a time schedule and sort on a hidden keyid field. Since alot of the people in other departments share the same PC, I would hate for someone to sort it by another field, then someone else comes to the PC, sees the next thing on the list performs a function that should be done at the end of the schedule.
I looked in the Options menu, but do not see an option for Right-click anywhere.
Robert - am I missing something here? You have a subform based on a table with a sort key that you want to use and hide. Why not just sort the subform by that key and exlude it from the subform. Then no matter what the users do, the next time that form is opened it will resort by the hidden key.
Simon Rouse
Dr. Simon's method will work. There is also a ShortcutMenu property on every form.
Set that to "No" and there will be no shortcut menu available to the user. You'll also want to deal with the menu up, top, though.
Turning off the menus and creating your own menus is quite a commmon thing to do in Access applications, and allows you to control the user experience much more tightly than leaving the standard menus available at all times.
Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.