Allen Browne's Database and Training

Allen Browne's Database and Training

for small business and not-for-profit organizations

Welcome to Allen Browne's tips for Microsoft Access

Brief tutorials and help for novices and database developers. Examples and solutions to implement. Bugs and traps to avoid. Sample code and utilities to download. All free.

This is literally an FAQ. It has grown in response to the most frequently asked questions in Access newsgroups, for more than 13 years. Each page explains the most efficient solution that works completely within Access, as simply as possible.

For a summary of the latest version, see Converting to Access 2007.

Tips for Casual Users

If you don't know how to write code, these may help.

Table Design

Forms

Reports

Expressions

Tips for Serious Users

Solutions for developers.

Forms

Combo Boxes

Reports

Queries

Relational Design

Tips for Programmers

Coding examples for VBA (Visual Basic for Applications.)

Solutions (VBA)

Functions (VBA)

Pitfalls and Traps

Examples by Library

Developer reference section: create, delete, modify, and list the database objects (tables, fields, indexes, relations, queries, databases) and set their properties. Heaps of code, with only limited explanations.

  • DAO code - 25 examples Access 97 and later
  • ADO code - 9 examples Access 2000 and later
  • ADOX code - 21 examples Access 2000 and later
  • DDL query - 8 examples Access 2000 and later

See also the Index of VBA Functions - list of the code from all pages on this site.

Applications / Utilities

Specific solutions and downloadable tools.

Applications

Utilities

Corruption / Repair

Flaws in Access

Service packs fix known bugs. To get the latest service pack for your version of Office, visit http://support.microsoft.com/sp or Office 2007 Service Pack 1.

New bugs

The flaws listed below remain unfixed for at least three versions of Access. You must know how to work around them, or they will bite you. Flaws marked "Sample" are demonstrated in AccessFlaws.zip (Access 2000, 125KB).

If you use queries, be aware!

These can all fail:

PARAMETERS clause
SELECT clause
DISTINCT predicate
FROM clause
WHERE clause
GROUP BY clause
ORDER BY clause

Some of these describe cases where Access fails or crashes.
Worse still, some give wrong answers, with no indication that the results are incorrect.

Interface bugs

Cases where Access displays or handles data wrongly in forms and reports.

Other bugs

Miscellaneous issues:

Upgrading

Converting Access versions

Issues you may encounter in changing version:

Microsoft also has an Access 2.0 Converter for Access 2003.

Converting from the old xBase

If you have a background in the old dBase/Foxbase, you may appreciate:

Contact us

All tips and samples are offered without liability: use at your own risk.

Permission

You may freely use anything (code, forms, algorithms, ...) from these articles and sample databases for any purpose (personal, educational, commercial, resale, ...). All we ask is that you acknowledge this website in your code, with comments such as:

'Source: http://allenbrowne.com
'Adapted from: http://allenbrowne.com

Support

We are not able to give free support for all the free tips, utilities, and solutions in these pages. We will need to charge you if you email asking for support or help in implementing these ideas or completing your database.

For free help, post a question to the Usenet newsgroups. Depending on your configuration, you might reach them with these links:
    comp.databases.ms-access
    microsoft.public.access.*
Alternatively, type those group names as the location in this link:
    http://groups.google.com
or try the Access Database section of the:
    Microsoft Communities
Clear, concise questions usually receive at least one good answer within 24 hours.

Occasionally, Access users offer to send something in gratitude. We prefer you give your donation to a charity that provides education and health for children (such as Compassion.) Then drop us an email so we can share the pleasure of your gift.

To email Allen Browne:

For other contact details, see our home page.


Home Top

Tips for Casual Users

Design

Forms

Reports

Expressions

Tips for Serious Users

Forms

Combos

Reports

Queries

Relational Design

Tips for Programmers

Solutions (VBA)

Functions (VBA)

Pitfalls / Traps

Examples by Library

(Index of VBA code)

Applications and Utilities

Applications

Utilities

Corruption / Repair

Flaws in Access

New Bugs

Data Engine Bugs

Interface Bugs

Other Bugs

Upgrading

Access Versions

old xBase

Contact us

Permissions

Support

Microsoft MVP

Home / Contact

Database development

Training / Consultancy

Clients

About MVPs

About Allen Browne

Links

Search this site

Access 2000 and 2002 users:

Many of these tips require the
Microsoft DAO Library.

If Database or Recordset gives an "unknown type" error, set your References.

(All other versions have this reference by default.)

Windows Vista bugs

1. Your database will be destroyed if you share it on a Vista computer and open it on other Vista machines. Hotfix: 935366

2. Do not store databases in offline folders! It may be lost on compact, or corrupted when you delete objects.

3. Add-in may not install on Access 2003. Details: kb 938809.

Last update: May 1, 2008