I have an MS Access database with a SQL Server 2005 backend. Ever since the move to the SQL Server backend, DLOOKUP functions and Ctrl+F (Find record filters, etc.) have become significantly slower, so I have begun switching these to SQL queries.
I have a form (frmMyForm) where the record source is a query. When the user double-clicks on a field, a small form pops up (frmFilter) where the user can search for a record by filtering on that field (it runs an SQL query WHERE field = [what user types]...). When the record is selected on frmFilter, the ID (primary key) is returned to frmMyForm, and frmMyForm then sets it's Record Source to SELECT RECORDS WHERE ID = [whatever is returned from frmFilter]
However, when the the record source is only set to one record, the user obviously cannot go back and forth to other records. I would like frmMyForm to GoToRecord where the ID = [whatever is returned from frmFilter]. This way, the record source stays the same, but the current record is changed to the record that the user found via frmFilter.
What is the best way to do this? I've looked into AbsolutePosition, but that number cannot be used among different recordsets.
Thank you for your help!