I am trying to fix a scrolling problem within a current Form. Currently, when I create a new record, it stays at the end until the form is requeried. I want to be able to create a new record, resort it, and then go to the next record after the record I created.
What I tried to do is bookmark the id of the new record in the after update sub, requery the form and carry that id into my next_click or prev_click routine. It finds that record I created and then moves to the next one. The problem is that when I haven't created a new record, it retains the id of the last record I created and thus, locks the form if I hit next or prev.
Does anyone have any ideas to overcome this problem?
What I tried to do is bookmark the id of the new record in the after update sub, requery the form and carry that id into my next_click or prev_click routine. It finds that record I created and then moves to the next one. The problem is that when I haven't created a new record, it retains the id of the last record I created and thus, locks the form if I hit next or prev.
Does anyone have any ideas to overcome this problem?