I have a form where the user selects and invoice number from a combo box. The combo box is filtered to show them only the records that have not been archived (using a date field).
The user wants a button to go to the next record. That seems pretty easy, even with the built in query wizard BUT i need it to go to the next record that has not ben archived.
For example. They may be on an invoice with an InvoiceID of 3695 and when they hit next they would need to go to the next record id where the archive date in that record is blank, so move to record 4178 instead of 3697.
I am sure there is a way to do this with some kind of query to get a value for the next available record but I am not sure. I looked at a few options like DoCmd.GoToRecord but not sure if i can do that since the form is based on a query not the table.
If someone can just point me in the right direction I can try to figure it out but not sure where to start.
Thanks