| | |
error problem...plss see
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
hi my friend... this my saverecord procedure...
Sub saverecord()
rssupplier.AddNew
rssupplier.Fields("CompanyCode") = txt1.Text
rssupplier.Fields("CompanyName") = txt2.Text
rssupplier.Fields("ContactPerson") = txt3.Text
rssupplier.Fields("Position") = txt4.Text
rssupplier.Fields("TelephoneNo") = txt5.Text
rssupplier.Fields("Address") = txt6.Text
rssupplier.Update
End Sub
thxxxxxxxxx...
Sub saverecord()
rssupplier.AddNew
rssupplier.Fields("CompanyCode") = txt1.Text
rssupplier.Fields("CompanyName") = txt2.Text
rssupplier.Fields("ContactPerson") = txt3.Text
rssupplier.Fields("Position") = txt4.Text
rssupplier.Fields("TelephoneNo") = txt5.Text
rssupplier.Fields("Address") = txt6.Text
rssupplier.Update
End Sub
thxxxxxxxxx...
after an 2hour nothing have been change in my form..pls help
after i save a record the data was been save.
but when i end the run..
and run again the program..
the datagrid became null..
the record that i save was lost and only white lines left..
after i enter the command button continuesly the error appeared.
plssssssss plssssssss.......... somebody help me.........
after i save a record the data was been save.
but when i end the run..
and run again the program..
the datagrid became null..
the record that i save was lost and only white lines left..
after i enter the command button continuesly the error appeared.
plssssssss plssssssss.......... somebody help me.........
•
•
Join Date: Nov 2007
Posts: 141
Reputation:
Solved Threads: 15
"key column information is insufficient or incorrect" error appears to suggest that your primary key field (whatever that may be) has either been left empty, or the contents of it is the same as a record already in your database.
Edit: on a google search, it is possible you have not included the Primary Key field in your recordset. This can also cause a similar error.
Edit: on a google search, it is possible you have not included the Primary Key field in your recordset. This can also cause a similar error.
Last edited by jonifen; Feb 2nd, 2008 at 6:14 am.
use this metod instead Update
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
UpdateBatch adAffectCurrent
Please try to look again in your datagrid maybe you missed about the name of the fields, may you lack in declaring some fields.
and about your code update...
I dnt see any rpoblem here but if this cause a problem then review your fieldnames.
1. how many fieldnames.
2. spelling of the fieldnames...
hope this will help you...
and about your code update...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
rssupplier.AddNew rssupplier.Fields("CompanyCode") = txt1.Text rssupplier.Fields("CompanyName") = txt2.Text rssupplier.Fields("ContactPerson") = txt3.Text rssupplier.Fields("Position") = txt4.Text rssupplier.Fields("TelephoneNo") = txt5.Text rssupplier.Fields("Address") = txt6.Text rssupplier.Update
1. how many fieldnames.
2. spelling of the fieldnames...
hope this will help you...
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
![]() |
Similar Threads
- can't turn on pc (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Visual Basic Application installable
- Next Thread: Get HD Info
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





