|
-
Sep 11th, 2002, 04:38 AM
#1
Thread Starter
Member
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.
-
Sep 11th, 2002, 04:56 AM
#2
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
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...
-
Sep 11th, 2002, 07:07 AM
#3
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|