Results 1 to 4 of 4

Thread: ADO DB update problems

  1. #1

    Thread Starter
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Post

    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?

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Posts
    82

    Post

    What are the errors and SQL statements?

    Preeti

  3. #3

    Thread Starter
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Post

    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.

  4. #4
    Lively Member
    Join Date
    Jan 1999
    Posts
    82

    Post

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width