Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

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

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Update inventory item cost and price?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v6 Forum

 New Topic 
 
 Post Reply 
[1]  
 Update inventory item cost and price? 
 Author   Message 
  Mark 
  
 Group: Members 
 Posts: 27 
 Joined: 2007-01-20 
 Profile
 Posted : 2007-08-14 02:27:12

I am getting and error in MSAccess ODBC--update on linked table Item failed [QODBC] Not supported (#10003)

QB enterprise 2007 with QODBC Server Edition.

I am trying to automate a pricing update from another table.

SQL:

UPDATE Item INNER JOIN [2007 Partner Price Update] ON Item.Name = [2007 Partner Price Update].[Part Number] SET Item.SalesPrice = [2007 Partner Price Update]![List Price], Item.PurchaseCost = [2007 Partner Price Update]!Cost
WHERE (((Item.Name)="506028401"));

Is this not supported? Is there another way to do it?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-08-14 08:29:11

The Item table is a read only table view of the ItemInventory, ItemNonInventory, ItemOtherCharge, ItemInventoryAssembly, ItemService, ItemFixedAsset, and ItemGroup tables. Your update statement needs to run against the actual table with the item in it.

If these are stock parts, see: How do I do Inventory Adjustments? for COGS adjustments. As far as the sales price and purchase price are concerned, the update statement is:

UPDATE ItemInventory set SalesPrice = 1200.00, PurchaseCost = 700  where Name = 'Acer Notebook'

 

  Top 
  Mark 
  
 Group: Members 
 Posts: 27 
 Joined: 2007-01-20 
 Profile
 Posted : 2007-08-15 08:35:42

Thanks that works fine in the VB Demo 32 but I have run into a snag with msaccess. When I try and do a bulk update I find that msaccess only has read only access to QB. I tried to change it in QB but I don't see an option to do that in the preferences.

What am I missing?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-08-15 09:00:45
Sorry, you haven't provided any details on what code or query you are executing, or any errors. You can't edit a query return set in MS Access and certain columns in all QODBC tables are not updatable or insertable. 

  Top 
  Mark 
  
 Group: Members 
 Posts: 27 
 Joined: 2007-01-20 
 Profile
 Posted : 2007-08-15 09:11:38

The point is not the query, I used the example query you provided. It works fine in VB Demo but not in access, not due to the query but due to the fact that the Integrated App setup for msaccess sets up as read only so I cannot do an update query.

VB Demo access QB with read/write rights but msaccess access with read only rights. How do I change that? I am running the QB Enterprise 2007 with the lates v7 QODBC Server driver.

The problem is the integration rights. I see no way to change it in QB.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-08-15 12:12:26

If you linked the QODBC tables in MS Access using the bundled QODBC Enterprise Edition that comes with QuickBooks Enterprise 2007 in USA, then the connection string will be hard coded as read only even though you are now running the QODBC Server Edition.

Try unlinking and relinking the tables or start another database in MS Access.

 

  Top 
  Mark 
  
 Group: Members 
 Posts: 27 
 Joined: 2007-01-20 
 Profile
 Posted : 2007-08-17 05:14:22
That fixed it thank you! 

  Top 
  CHUCK08221960 
  
 Group: Members 
 Posts: 3 
 Joined: 2007-09-05 
 Profile
 Posted : 2007-09-05 04:27:18

I just purchased the write verson of the odbc driver for quickbooks.  We are using qbe 7.0.  I have cost in a text file and need to update all of the item cost in our quickbooks file?  I need a steer in the right direction??

 

Thanks chuck

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-09-05 09:29:10
You will need to write a program or script to read the text file and execute update statements for each line. 

  Top 
  CHUCK08221960 
  
 Group: Members 
 Posts: 3 
 Joined: 2007-09-05 
 Profile
 Posted : 2007-09-05 10:44:01

Ok great!  However I was told prior to purchase that what I was wanting to do was very common and there is a libray of scripts and processess to do the job.  I explained I was very capable using excel and foxpro and can muddle through some VB.

 

Thanks Chuck

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-09-05 11:04:09
The examples can be found here: Can I get some examples of how to use QODBC via Visual Basic?   

  Top 
  CHUCK08221960 
  
 Group: Members 
 Posts: 3 
 Joined: 2007-09-05 
 Profile
 Posted : 2007-09-06 10:51:28

I looked at all of the vbs programs.  First of all I do not see any documentation ????  Can you steer me to a link that will explain the code.  Furthermore, I do not see any examples of using excel to update the item file, namely the cost and or price fields???  I have used "update on ...." type of sql statemnts before???  How do i open the quickbooks item file, match on the text file item name field and update all of the records?  To suggest I need to write a program seems a little counter productive?  Do I need to pay you guys to construct this update statement - or can i supply some sample data?  But really, I described what I want to do at lenght before i bought the program and was assurred it would be easy and would have acces to SEVERAL examples to update the item file.

Chuck

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-09-06 12:18:06

Again, from above......the Item table is a read only table view of the ItemInventory, ItemNonInventory, ItemOtherCharge, ItemInventoryAssembly, ItemService, ItemFixedAsset, and ItemGroup tables. Your update statement needs to run against the actual table with the item in it.

Please contact whoever made the representations to you in regards to using Microsoft Excel. This is a QODBC support forum only.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to