Click to See Complete Forum and Search --> : ADO DB update problems
rockies1
Jul 12th, 1999, 11:49 AM
I have a VB6 front-end that connects to an Access97 DB and uses a query there as it's source.
When I try to update the data, I keep getting errors...
I'm happy to post the code if needed...
Anyone have any ideas?
preeti
Jul 12th, 1999, 06:02 PM
What are the errors and SQL statements?
Preeti
rockies1
Jul 12th, 1999, 06:14 PM
err.number - -2147217842
err.description = "The change was canceled during notification; no columns were changed"
There is no SQL. I am using the ADO data control to access an query in an Access DB.
preeti
Jul 12th, 1999, 09:04 PM
Are you able to run the query from Access? If so, try running the query from VB instead of having the query in Access. If this works, then it is a setting with your ADO control, if it doesn't work then it's the way that VB is accessing (or sending) your query.
To run the query from VB:
Dim adoCon as new ADODB.Connection
Dim sSQL as String
'Fill in the information to connect to
'your database
adoCon.ConnectionString="DSN=;UID=;PWD=;"
sSQL = "UPDATE ..."
adoCon.Execute sSQL
If the SQL Statement will not work, you should get the same error as a runtime error.
HTH,
Preeti
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.