We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,548 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

adodc -2147... (80040e21) error

Run-time error '-2147217887 (80040e21)'

Multiple-step operation errors. Check each status value.

===
The one highlighted was: Adodc2.Recordset.Update

Private Sub Command1_Click()

Adodc2.Recordset.AddNew
Text13.Text = Label19.Caption
Text14.Text = Label15.Caption

Label5.Caption = Text6.Text + "-" + Text7.Text
Label3.Caption = Text1.Text
Label21.Caption = Text10.Text
Text11.Text = Text6.Text

Label17.Caption = Text3.Text + ", " + Text4.Text + " y " + Text5.Text

If Option1.Value = True Then
Text2.Enabled = False
Label7.Caption = Option1.Caption
ElseIf Option2.Value = True Then
Text2.Enabled = False
Label7.Caption = Option2.Caption
ElseIf Option3.Value = True Then
Text2.Enabled = False
Label7.Caption = Option3.Caption
ElseIf Option4.Value = True Then
Text2.Enabled = False
Label7.Caption = Option4.Caption
ElseIf Option5.Value = True Then
Text2.Enabled = False
Label7.Caption = Option5.Caption
ElseIf Option6.Value = True Then
Text2.Enabled = False
Label7.Caption = Option6.Caption
ElseIf Option7.Value = True Then
Text2.Enabled = True
Label7.Caption = Option7.Caption
Label8.Caption = Text2.Text
End If

Adodc2.Recordset.Update
End Sub

====
Any opinions are appreciated, I'll just try. thanks. I'm just newbie here

2
Contributors
1
Reply
5 Hours
Discussion Span
5 Months Ago
Last Updated
2
Views
Question
Answered
mklove999
Newbie Poster
4 posts since Dec 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

I am presuming that your text boxes is linked to your data control?

The error is refering to incorrect data to your table in your database, i.e. if one of your fields will only accept a date or a number, but the textbox contains something else than that, the error will be raised. Make sure that the data send to your database is as requested by it in the correct formats...

Post the data that you are trying to add as well as the fields in your table.

AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20
Question Answered as of 5 Months Ago by AndreRet

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0790 seconds using 2.65MB