Results 1 to 3 of 3

Thread: new to ADO

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    42

    Talking new to ADO

    Hi All…
    I’m new in ADO and I want to create a simple application, So that I have created a form set all references.
    I have 4 text boxes and I have set the properties according to Adodc1 data control.
    When I’m running my application , on form load it shows values in text boxes and moving recordset according to adodc1 control. But my Problem is how can I add a new record in table. My code goes like this;
    Private Sub add_Click()
    Adodc1.Recordset.AddNew
    Text1.SetFocus
    End Sub

    Private Sub save_Click()
    Adodc1.Recordset.UpdateBatch
    End Sub

    At the time of update it gives runtime Error: “Providor called a method from IrowsetNotify in the consumer and method has not yet returned”
    Please help me if you can…?
    Thanks in advance……..
    Adhikari.

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    Private Sub save_Click()
    Adodc1.Recordset.Update
    End Sub
    Try that ...



    Although I suspect since you've bound the table and controls you won't need a save...


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    42

    Talking lil bit ahead

    thanks , but suppose i want to save record according to users perception then I'm writing code for save event.
    Its saving record if I'm moving through data control, but I want it to force save.
    I've tried update also but its giving same problem.. any suggation pls....

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