0
我正在使用QODBC连接器输入和更改我的QuickBooks公司文件中的数据。插入QuickBooks单发票的InvoiceLine的MS Access错误
我想创建一个MS Access脚本来从csv文件中提取所有数据,并在表中添加csv数据作为发票。
INSERT INTO InvoiceLine (CustomerRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineQuantity, InvoiceLineRate, InvoiceLineSalesTaxCodeRefListID) VALUES ('80000078-1311176211','99990','800007D6-1369617126','Description', 2.00, 9.09, '80000009-1311174909')
我在加入到外地TxnNumber,因为这似乎是允许多个项目被添加到同一张发票领域非常感兴趣:
我可以使用此代码成功添加新发票(即如果与同TxnNumber和RefNumber InvoiceLine 4项,他们会表现出作为一个发票。
我在查询尝试如下。
INSERT INTO InvoiceLine (CustomerRefListID, TxnNumber, RefNumber, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineQuantity, InvoiceLineRate, InvoiceLineSalesTaxCodeRefListID) VALUES ('80000078-1311176211', '8177', '99990','800007D6-1369617126','Description', 2.00, 9.09, '80000009-1311174909')
下面,我看到的错误消息:
ODBC--insert on a linked table 'InvoiceLine' failed.
[QODBC] Field not allowed in insert. (#10046)
如果我能克隆你,借你的大脑,我就要你我的爱。你先生是骑士和绅士。 – Dan
哈哈哈,那个评论使我的夜晚!很高兴我能帮上忙! –
愚蠢的问题,我将如何去使用TxnID字段中的当前时间戳? – Dan