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
|
|
Is there a way of making Inventory Active/InActive |
Author |
Message |
Don |
|
Group | : Members |
Posts | : 17 |
Joined | : 2006-05-03 |
|
Profile |
|
Posted : 2007-03-20 02:54:21 |
Hello Tom, I'm trying to programmatically make Inventory Items In-Active after a sale or Active after voiding a sale.
I would have thought that the following SQL statement would have worked fine but I get error 214217887(80040e21) saying the ODBC driver doesn't support this statement.
sSQL = "UPDATE ItemInventory SET ItemInventory.IsActive = True " & _ "WHERE (((ItemInventory.ListID)='ED0000-1173904787'))"
Thanks for your help on previous posts, I'm hoping you can help me here as well. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-03-20 08:36:06 |
Try:
sSQL = "UPDATE ItemInventory SET IsActive = True " & _ "WHERE (((ListID)='ED0000-1173904787'))"
as QODBC doesn't support the Table name being used in the SET columns. |
|
|
|
Don |
|
Group | : Members |
Posts | : 17 |
Joined | : 2006-05-03 |
|
Profile |
|
Posted : 2007-03-20 08:45:46 |
Excellent !!.....Works fine now....Thanks for you speedy response. |
|
|
|
|
Posted : 2007-09-16 03:44:04 |
I try:
Select * From openquery(QODBC,'UPDATE ItemInventory SET IsActive = True WHERE (((ListID)=''E20000-1164059394''))')
Return this error:
Cannot process the object "UPDATE ItemInventory SET IsActive = True WHERE (((ListID)='E20000-1164059394'))". The OLE DB provider "MSDASQL" for linked server "QODBC" indicates that either the object has no columns or the current user does not have permissions on that object.
why?
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-09-16 18:21:54 |
Sorry, your syntax is incorrect for MS SQL Server, it should be:
update openquery (QODBC, 'select "IsActive" from ItemInventory WHERE "ListID" = 'E20000-1164059394'') SET "IsActive" = TRUE |
|
|
|
|