logo
search
Others

Fix Access Data Type Mismatch When Combining Weekday Fields

Adam DavisAdam Davis Oct 14, 2026 868 views

Question details

The user needs to combine multiple Yes/No fields representing weekdays into a single text string using a query, but encounters a data type mismatch and unexpected parameter prompts.

Fix Access Data Type Mismatch When Combining Weekday Fields
Product
Microsoft Access
Device & OS
not provided
Scenario
Attempting to concatenate Yes/No weekday fields with text expressions in a make-table query to create a summary string of available days.
Observed behavior
The Access query returns a data type mismatch error in the criteria expression and prompts for parameters for unrecognized field references.
Before you start

Verify that all field names in your table are spelled correctly without hidden spaces, as typos are the most common cause of unexpected parameter prompts in Access queries.

Solution 1Recommended

Use the Ampersand (&) Operator for Text Concatenation

Replace the plus sign (+) with the ampersand (&) to safely combine different data types and avoid mismatch errors.

In Microsoft Access, using the plus sign (+) for combining text and other data types can confuse the query engine, as it may attempt to perform mathematical addition. The ampersand (&) forces Access to treat the operation as string concatenation.

1
Open Query in Design View

Right-click your query in the Navigation Pane and select 'Design View'.

2
Locate the Expression

Find the column containing the expression that attempts to combine your weekday fields.

3
Replace the Operator

Change any plus signs (+) used for joining strings to ampersands (&).

4
Apply the IIf Function

Ensure you are evaluating the Yes/No field properly. For example, use: IIf([Test_Mo], "Mon, ", "") & IIf([Test_Tu], "Tue, ", "").

5
Check Field Names

Double-check the spelling of every field name inside the brackets (e.g., [Test_Mo]). If a field name is misspelled, Access will prompt for a parameter.

Use the Ampersand (&) Operator for Text Concatenation
Syntax check: Using the ampersand (&) operator is universally safer for text concatenation in Access SQL and VBA.
Free Microsoft Office alternative

Manage Data Easier with WPS Spreadsheet

If managing relational databases in Microsoft Access is overly complex for your needs, consider switching to WPS Office. WPS Spreadsheet provides a lightweight, user-friendly environment for managing flat tables, lists, and schedules without the hassle of SQL errors or data type mismatches.

  1. 1. Export Data: Export your current Access table data as an Excel (.xlsx) or CSV file.
  2. 2. Open in WPS Spreadsheet: Launch WPS Office, click on 'Spreadsheet', and open your exported file.
  3. 3. Summarize Data: Use simple built-in formulas, filters, or pivot tables to summarize your daily schedules easily.
Highly compatible with Microsoft Excel (.xlsx) and CSV formats.Manage tabular data effortlessly without complex SQL queries or mismatch errors.Lightweight, fast installation with a familiar user interface.100% free core features to streamline your daily workflow.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Access prompt for a parameter when I run a query?

This typically happens when a field name referenced in the query is misspelled, deleted, or does not exist in the underlying table. Access assumes the unrecognized text is a parameter that the user needs to provide.

What is the difference between the plus (+) and ampersand (&) operators in Access?

The ampersand (&) operator is specifically designed for concatenating text strings and handles null values smoothly. The plus (+) operator can act as mathematical addition, which often causes a 'Data type mismatch' error when Access tries to add text and numbers together.

Why is it bad practice to have repeating columns for weekdays in Access?

Repeating columns violate fundamental database normalization rules. They make querying difficult, require complex expressions to extract or combine data, and make the database harder to maintain compared to storing related data as separate rows in a linked table.