I am working on my survey application. I have a tblQuestions which contains survey question data. One field, QuestionOrder, determines the sort/display order of the questions in my datasheet form.
example:
1 This is a question
2 This is another question
3 Yet another question
4 You get the idea
I have 'move up' and 'move down' buttons. If the currently selected record is #3, and I hit 'Move Up', I want the QuestionOrder field to change from 3 to 2, and I want the record that previously had a QuestionOrder of 2 to become 3, and then the form recalcs and the sort order changes, creating the 'illusion' of moving the question 'up' in the order.
Is there a better way to do this than doing a bunch of Recordset.MovePrev and .MoveNexts?
I was thinking perhaps using a couple of different recordset objects to save each record's original QuestionOrder value, then updating the respective recordsets to the new value...
example:
1 This is a question
2 This is another question
3 Yet another question
4 You get the idea
I have 'move up' and 'move down' buttons. If the currently selected record is #3, and I hit 'Move Up', I want the QuestionOrder field to change from 3 to 2, and I want the record that previously had a QuestionOrder of 2 to become 3, and then the form recalcs and the sort order changes, creating the 'illusion' of moving the question 'up' in the order.
Is there a better way to do this than doing a bunch of Recordset.MovePrev and .MoveNexts?
I was thinking perhaps using a couple of different recordset objects to save each record's original QuestionOrder value, then updating the respective recordsets to the new value...