Northwind action query error msg "multi-valued fields are not allowed in select into statements"

StackOverflow https://stackoverflow.com/questions/13255135

  •  27-11-2021
  •  | 
  •  

Question

I downloaded a Northwind template and am unable to run any type of action queries on the app's tables. I get error messages such as:

  1. "multi-valued fields are not allowed in select into statements".

  2. "Select* cannot be used in an insert query when the source or destination table contains mutli-value field"

Is there a way to run action queries to this app's tables without having to use VBA?

Thank You very much in advance, Nathaniel

SELECT Orders.*, * INTO d
FROM Orders;


INSERT INTO [Copy Of Products] ( [Product Code], [Product Name], [List Price], [Supplier IDs], Discontinued, Category, Attachments )
SELECT Sheet4.ID, Sheet4.DESCRIPTION, "1" AS Expr1, "11" AS Expr2, "False" AS Expr3, Sheet4.COMMODITY_CODE, "0" AS Expr4, *
FROM Sheet4;
Was it helpful?

Solution

You have three problems with the Products table from a standard design point of view.

  1. It is associated with the suppliers table (both in the property sheet and the supplier ids field).
  2. Categories is a multi-value field.
  3. Attachments is attachment type.

You should be able to run an update query as long as none of these fields are included. In your example, you have [Supplier IDs]. In standard design, you would have a junction table for products / suppliers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top