We help IT Professionals succeed at work.
Get Started

MS Access w/ SQL Server - Go To Record WHERE...

Chris
Chris asked
on
692 Views
Last Modified: 2021-04-21
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!
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE