Fix Access Data Type Mismatch When Combining Weekday Fields
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.

- 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.
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.
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.
Right-click your query in the Navigation Pane and select 'Design View'.
Find the column containing the expression that attempts to combine your weekday fields.
Change any plus signs (+) used for joining strings to ampersands (&).
Ensure you are evaluating the Yes/No field properly. For example, use: IIf([Test_Mo], "Mon, ", "") & IIf([Test_Tu], "Tue, ", "").
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.

Normalize the Database Structure
Restructure your database to eliminate repeating columns, which prevents complex expression errors and aligns with proper database design.
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. Export Data: Export your current Access table data as an Excel (.xlsx) or CSV file.
- 2. Open in WPS Spreadsheet: Launch WPS Office, click on 'Spreadsheet', and open your exported file.
- 3. Summarize Data: Use simple built-in formulas, filters, or pivot tables to summarize your daily schedules easily.

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.




