I have a user-form whose job is to gather various search criteria entered by the user, construct an SQL query then perform the search on the main database. Various switches are included to allow fine tuning of the search process.
The main search criteria is stored in the table table tblSrchCrt (comprising 3 fields of user-entered search data).
tblSrchCrt:
![]()
What I’d like to do is have the ability for the user to recall previous search criteria thus enabling the ability to further amend existing search criteria (if the current criteria needs to be amended at a later date). The actual criteria is much larger than this example, so this facility would be handy. Additionally, I’d like the switch states (Boolean yes/no primarily) to be saved also.
To facilitate this, I’m thinking about adding ‘Save’, ‘Previous’ and ‘Next’ buttons, then coding as appropriate underneath the buttons.
I could replicate tblSrchCrt manually, say, 20 times to allow for a history of 20 search criterias…adding a number between 1-20 to the table name then navigating between tables using the number as a pointer.
Is there a more standard way to do this?