Snowflake68
Registered User.
- Local time
- Today, 18:52
- Joined
- May 28, 2014
- Messages
- 464
I would like to reproduce the functionality that you get in some windows forms which allow you to move items up and down a list via arrow buttons.
I have a subform with a datasheet which the user can already sort by a chosen category (I have already built this functionality which works well). However they now want to be able to sort the list by moving a record up or down by selecting the record and move it within the datasheet.
The list is currently sorted by a hidden column with a numerical value and I would like to be able to increment this number with each click of the down button or decrement it with each click of the up button. But I would then need to increment or decrement all of the other records accordingly.
Also as the form is a datasheet I am not able to add a button so it probably would need to be two additional columns with OnClick events on an embedded image (no idea if this will work though).
Not really sure how to go about this so any suggestions would be very much appreciated.
I have a subform with a datasheet which the user can already sort by a chosen category (I have already built this functionality which works well). However they now want to be able to sort the list by moving a record up or down by selecting the record and move it within the datasheet.
The list is currently sorted by a hidden column with a numerical value and I would like to be able to increment this number with each click of the down button or decrement it with each click of the up button. But I would then need to increment or decrement all of the other records accordingly.
Also as the form is a datasheet I am not able to add a button so it probably would need to be two additional columns with OnClick events on an embedded image (no idea if this will work though).
Not really sure how to go about this so any suggestions would be very much appreciated.