I'm getting back to an old project, and I have a general (vba recordset?) approach type question if I may. The user wants to see entries on screen as a datasheet - which will be a filtered sub form with a query recordsource - with new records appending at bottom. So I'm planning a sort field, wherein the new record will be incremented from the current record. (The user will be simply tabbing through bound controls, creating an appendation automatically when tabbing to first control of a new record.) But I will also be trapping (for a key combination) that says the user wants an "insertion " not an "append" - ie. where the new record will be "in the middle". So after computing its new sort field value, all "further down" records will need the sort field incremented by one, starting with the record just following the original current record - ie. the one beneath which the user has signaled for an insertion.
I'm assuming this needs to be done by defining and looping through an appropriate recordset, incrementing the order-by field each time (doing a re query at end of loop), but would appreciate comments or better ideas from experienced coders. Thx, Ron