Office Apps Crashing

Fix Microsoft Access Crashes from Multiple DLookup Calls on a Union Query

Kushani NimanthikaKushani Nimanthika Nov 22, 2026 869 views

Question details

Prevent Microsoft Access from crashing when a query runs multiple DLookup functions against the same saved union query or source.

Product
Microsoft Access
Device & OS
not provided
Scenario
A query uses multiple DLookup expressions to retrieve values from one saved union query or source.
Observed behavior
Microsoft Access may crash when the query runs.
Before you start

Identify the query that crashes, the DLookup expressions it contains, and the saved union query or source they reference. Check which fields and criteria each lookup uses so you can compare results after changing the query.

Solution 1Recommended

Replace Repeated DLookup Calls with a Join or Grouped Query

Use this approach to reduce repeated lookups against the same source and test whether a simpler query avoids the crash.

1
Open the failing query

In the Access Navigation Pane, right-click the failing query and select Design View. Note each DLookup field, source, and criteria expression.

2
Prepare the lookup source

Open the saved union query and check whether it returns more than one row for each lookup key. If necessary, create a grouped query through Create > Query Design that returns one row per key and the values you need.

3
Add the source to the query

In the failing query's Design View, add the union query or grouped query and join its key field to the matching field in the main source. Choose the join type based on whether records without a match should remain in the results.

4
Replace and test the expressions

Replace the DLookup expressions in the design grid with fields from the joined source, then select Run. Compare the results and row counts with the intended lookup results.

Check for duplicate matches: A join can produce extra rows if the lookup source has multiple matches per key. Choose an appropriate grouping or other rule before joining; a grouped query may not reproduce the original lookup behavior automatically.
Free Microsoft Office alternative

Use WPS Office for Everyday Office Documents

WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support help make migration straightforward. It does not fix Microsoft Access crashes or replace Access database queries.

Work with spreadsheet data outside the affected Access query.Open and edit common Microsoft Office formats, including DOCX, XLSX, and PPTX.Use a familiar interface for documents, spreadsheets, and presentations.Get a free, lightweight office suite for everyday work.
microsoft office alternative - wps office

Frequently Asked Questions

Why might a join be better than several DLookup calls?

A join can retrieve several fields from the same source without separate DLookup expressions. In Query Design, add the source and join it on the lookup key, then verify that duplicate matches do not change the row count.

Can I join directly to a saved union query?

Yes. Add the saved union query as a source in Query Design and join its key field to the main query. Check for duplicate keys first, because multiple matches can produce extra rows.

What should I include in a crash reproduction?

Create a small Access database containing only the relevant tables, sample records, union query, and failing expressions. Confirm that running the query reproduces the crash before sharing it.

Can WPS Office repair an Access DLookup crash?

No. The crash must be investigated in Microsoft Access. WPS Office can be used for compatible documents, spreadsheets, and presentations, but it does not replace Access database queries.