Column Designation error

Maxine Nietz 1 Reputation point
2024-10-11T21:13:09.46+00:00

I have a list box (ERPNewOrderList) on a form (AddNewOrders). The rowsource for the list box is a query:

Column(0): SONo: [SalesOrderID] & "." & [SOLineNbr] where [SalesOrderID] datatype is ShortText and [SOLineNbr] datatype is Number LongInteger.

Column(1): [SalesOrderDate] datatype is Date/Time ShortDate.

 

After updating the list box, I am running a query that adds each item to a table (AddItTable), showing which items are selected and which are deselected:

INSERT INTO AddItTable ( SONo, Selected ) SELECT Forms!AddNewOrders!ERPNewOrderList.Column(0) AS Expr2, Yes AS Expr1 FROM AddItTable;

 

The query is not running. It gives the error:

ColumnError What is the problem? How can I fix it?

Access
Access
A family of Microsoft relational database management systems designed for ease of use.
402 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.