I have a form with a subform set up for navigation. Essentially, the subform contains a listbox (tied to a cache table field) of the names of all records in the table of the main form, along with a “Go” button, which launches a macro. The macro grabs the integer value (i) of the selection in the dropdown and then
msgbox "Going to: " & CStr(i)
oMainForm.absolute(i)
Now, if I select in the listbox the name of the very last record in the listbox, the msgbox correctly displays the id number of that record, but then the main form jumps to the very first record, even if it’s already on the very last one. I’ve checked that the form is ordered by id numbers ascending, so that’s not the problem. If I select the name of the very first record, it says it’s going to 1 and then it does.