Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL - UPDATE Command problem
Message
From
17/01/1999 06:57:21
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
SQL - UPDATE Command problem
Miscellaneous
Thread ID:
00176974
Message ID:
00176974
Views:
59
I had a problem in while updating two tables like Master & Transaction in SQL Server 7.0 throgh ODBC using VB6.
I used the command as appended below:

Dim MyDb As Object
Dim SqlString1, SqlString2 As String
Set MyDb = OpenDatabase("", dbDriverNoPrompt, False, "ODBC; DSN=SQL; UID=User; PWD=Password")

SqlString1 = "UPDATE Master SET = 'Newvalues' WHERE nId = IdValue"
SqlString2 = "UPDATE Trans SET = 'Newvalues' WHERE nID = IdValue"

MyDb.Execute SqlString1
MyDb.Execute SqlString1

When Execute the SqlString, the following error message appeared
'3073 - Operation must be use an updatable Query'

Please help me, Thanks in advance.

Regards,
Ragu.
Reply
Map
View

Click here to load this message in the networking platform