Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

using OpenRecordSet to improve linked table performance

using OpenRecordSet to improve linked table performance

using OpenRecordSet to improve linked table performance

In the Access 97 help files, I found some info on "greatly enhancing performance when opening the main database and opening tables and forms by forcing the linked database to remain open.  To do this create an empty table in the linked database (back end?) and link the table in the main database (front end?).  Then use the OpenRecordset method to open the linked table."  I can't find any info on HOW to use the OpenRecordset method to do this. Any help?  Thanks!

RE: using OpenRecordSet to improve linked table performance

I can't imagine why you can't find OpenRecordset in the help file. Maybe your help file is corrupted?

Anyway, what you need to do is define a couple variables in a standard module:
    Dim dbDummy As Database, rstDummy As Recordset
Then, in your application's startup code (the Form_Open for your main form, most likely) place the following code
    If rstDummy Is Nothing Then
        Set dbDummy = CurrentDb()
        Set rstDummy = dbDummy.OpenRecordset("DummyTable")
    End If

IT IS IMPORTANT that before your application terminates, you close this recordset and database as follows:
    If Not rstDummy Is Nothing Then
        Set rstDummy = Nothing
        Set dbDummy = Nothing
    End If
If you fail to do this, it's possible that Access will minimize to the task bar instead of shutting down, and you'll have to End Task from the Task Manager (Ctrl-Alt-Delete). If this happens, you will also lose a little bit of your RAM until the next time you reboot.

Rick Sprague

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close