Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Operation Was cancelled Error

Operation Was cancelled Error

Scheduled Pinned Locked Moved Visual Basic
databasewpfwcfdesign
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ShuklaGirish
    wrote on last edited by
    #1

    i am having my project in vb6.0,i have binded my controls at design time with Maindata(RecordSet). Now i am binding DataCombo control at runtime(with new RECORDSET),when i am writing this code i am getting error in other events when my maindata(recordset)is getting updated.error is "Operation was cancelled" wt clould be the reason??????? This is the code, Set PartyData = New ADODB.Recordset PartyData.CursorLocation = adUseClient If PartyData.state = adStateOpen Then PartyData.Close PartyData.Open "select StkSuppliersMaster.name from StkSuppliersMaster join purinqparty on StkSuppliersMaster.code=purinqparty.suppliercode where purinqparty.mastid=(select id from purinqmaster where inqno=" & txtInqNo.Text & ")", db, adOpenStatic, adLockPessimistic Set dbcParty.RowSource = PartyData above code works fine if i write, PartyData.Open "SELECT * FROM StkSuppliersMaster order by Name", db, adOpenStatic, adLockPessimistic GIRISH

    B T 2 Replies Last reply
    0
    • S ShuklaGirish

      i am having my project in vb6.0,i have binded my controls at design time with Maindata(RecordSet). Now i am binding DataCombo control at runtime(with new RECORDSET),when i am writing this code i am getting error in other events when my maindata(recordset)is getting updated.error is "Operation was cancelled" wt clould be the reason??????? This is the code, Set PartyData = New ADODB.Recordset PartyData.CursorLocation = adUseClient If PartyData.state = adStateOpen Then PartyData.Close PartyData.Open "select StkSuppliersMaster.name from StkSuppliersMaster join purinqparty on StkSuppliersMaster.code=purinqparty.suppliercode where purinqparty.mastid=(select id from purinqmaster where inqno=" & txtInqNo.Text & ")", db, adOpenStatic, adLockPessimistic Set dbcParty.RowSource = PartyData above code works fine if i write, PartyData.Open "SELECT * FROM StkSuppliersMaster order by Name", db, adOpenStatic, adLockPessimistic GIRISH

      B Offline
      B Offline
      BooleanTrue
      wrote on last edited by
      #2

      try adLockOptimistic.... May be then it works

      colgateas900197

      S 1 Reply Last reply
      0
      • B BooleanTrue

        try adLockOptimistic.... May be then it works

        colgateas900197

        S Offline
        S Offline
        ShuklaGirish
        wrote on last edited by
        #3

        thanks for ur reply i will try and let u know.

        1 Reply Last reply
        0
        • S ShuklaGirish

          i am having my project in vb6.0,i have binded my controls at design time with Maindata(RecordSet). Now i am binding DataCombo control at runtime(with new RECORDSET),when i am writing this code i am getting error in other events when my maindata(recordset)is getting updated.error is "Operation was cancelled" wt clould be the reason??????? This is the code, Set PartyData = New ADODB.Recordset PartyData.CursorLocation = adUseClient If PartyData.state = adStateOpen Then PartyData.Close PartyData.Open "select StkSuppliersMaster.name from StkSuppliersMaster join purinqparty on StkSuppliersMaster.code=purinqparty.suppliercode where purinqparty.mastid=(select id from purinqmaster where inqno=" & txtInqNo.Text & ")", db, adOpenStatic, adLockPessimistic Set dbcParty.RowSource = PartyData above code works fine if i write, PartyData.Open "SELECT * FROM StkSuppliersMaster order by Name", db, adOpenStatic, adLockPessimistic GIRISH

          T Offline
          T Offline
          TomGarth
          wrote on last edited by
          #4

          inqno=" & txtInqNo.Text & ")", You didn't include the character identifiers ( ' ). Try: inqno='" & txtInqNo.Text & "')",

          Tom Garth Developer R. L. Nelson and Associates, Inc., Virginia

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups