Gallery

5 tips to make your Access database super-fast


on July 10

We’ve all been there. You fire up Access and load your favorite Access app only to see it drag like molasses in winter. Try these five tips to boost the speed of your database:

  1. Make sure all of your tables have primary keysRunning a table without a primary key is like running a four-cylinder engine with only two active pistons. Open every table in Design view and make sure each has a primary key. Extra points: Limit your primary keys to just one field in order to stay away from using multi-field implementations. Can’t settle on which single field to use? Then add an Autonumber field and make it your primary key.

  2. Optimize by adding secondary indexesDo you find yourself searching on the same field over and over again? Time to add a secondary index! For example, the secondary index OrderDate will be heavily used in an order database. Go ahead and add it and any more of them that you need. (Don’t overdo it by adding secondary indexes for all of your fields either).

  3. Be like an atom and splitIf you are sharing your Access database with other people on a network and haven’t split it up yet, you’re in for a real treat. Use the Access Database splitter and split that bad boy already. Extra credit: leave the data file on the network and copy the frontend to your user’s desktop and you’ll increase speed again.

  4. Use Compact and RepairOur favorite tool and I hope it becomes your’s too! Use Compact and Repair at least once a month–it’s just good housekeeping.

  5. Load only what you needWhen your app starts, do you really need to display every order since the beginning of time? Ok, if you’re the owner and love to see the bottom line dollars then yes, but for everyone else, reconsider what data you’re loading where throughout your app. Get rid of forms that open everything and instead load forms using a “where” clause to show only the data that you need.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s