Member Login

Username
Password
Forget Password
New Sign Up
  Search Forums

  FREE Support
  Forums

  QODBC v10
  QODBC v9
  QODBC v8
  QODBC v7
  QODBC v6

  QODBC FAQs

The QDeveloper Forum is the property of Data Access Worldwide, Australia. The contents of this forum have been taken by FLEXquarters.com Limited, Hong Kong at: http://support.flexquarters
.com/esupport/
without our permission.

 


 
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
 
 
 
 

Forum : Cannot Insert Data to ItemInventorySearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v9 Independent Self Help Forum

 New Topic 
 
 Post Reply 
[1]  
 Cannot Insert Data to ItemInventory 
 Author   Message 
  bonpon 
  
 Group: Members 
 Posts: 1 
 Joined: 2009-04-05 
 Profile
 Posted : 2009-04-05 01:54:25

I am new to SQL language and QODBC. Basically I am linking MS Access to Quickbooks Enterprise V9 via QODBC. I linked table ItemInventory to MS Access, and I can change the data value, and it updates successfully. Then I create a blank form with a button, and I programmed when pressing a button, it will do the following:

CurrentDb.Execute "Insert INTO ItemInventory (ListID,EditSequence, Name, IncomeAccountRefListID, IncomeAccountRefFullName, COGSAccountRefListID, COGSAccountRefFullName, AssetAccountRefListID, AssetAccountRefFullName) VALUES ('80000006-1238800996', '8', 'Door8', '8000000A-1238800946', 'Merchandise Sales', '80000020-1238800986', 'Cost of Goods Sold', '80000006-1238800946', 'Inventory Asset')"

Then I clicked that button, I got this error: Run-time error '3113'; Cannot update 'EditSequence'; field not updatable So I temporary remove EditSequence from the SQL statement, and I clicked the button, and I got this error: Run-time error '3155'; ODBC -- insert on a linked table 'ItemInventory' failed. I tried to create a new table with slightly different table name and run that SQL statement, and it works fine. Questions: Q: What is EditSequence field? What value should I put? Q: How do I insert data into ItemInventory? Thanks! Bonpon

 

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-04-05 19:50:33
ListID and EditSequence are read only, reserved for QuickBooks, columns. Try looking at: How do I add a Inventory Item using QODBC? and Where are the schema rules for using QODBC? How do I use sp_columns? for how to find out what cloumns are required in INSERTs. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to    

Copyright (c) 2006-2009
Data Access Worldwide, Australia. This FREE self help forum website was copied by FLEXquarters.com Limited, Hong Kong to: http://archive.qodbc.com
/forum50f5.html
without our permission.

The QDeveloper Forum is dedicated to the FREE professional exchange of information. QODBC and FlexODBC users can post support queries, report product bugs, or simply search topics for help. Data Access Worldwide - Asia Pacific normal office business hours are 9am to 5pm week days Australian EST with the exception of Public Holidays.
       
ABN: 86 544 223 459
PO Box 873, Boronia VIC 3155 Australia  Tel: 03 9761 3644  Intl: +613 9761 3644