error problem...plss see

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jul 2007
Posts: 113
Reputation: jaasaria is an unknown quantity at this point 
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster

error problem...plss see

 
0
  #1
Feb 1st, 2008
this is the error i have...

key column information is insufficient or incorrect. to many rows were affected by update.


thx for viewing...
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 569
Reputation: ryan_vietnow is an unknown quantity at this point 
Solved Threads: 71
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro

Re: error problem...plss see

 
0
  #2
Feb 1st, 2008
i think it is in your .update.you have less fields that you have updated.Please post your code.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 113
Reputation: jaasaria is an unknown quantity at this point 
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster

Re: error problem...plss see

 
0
  #3
Feb 2nd, 2008
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...
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 113
Reputation: jaasaria is an unknown quantity at this point 
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster

Re: error problem...plss see

 
0
  #4
Feb 2nd, 2008
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.........
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 141
Reputation: jonifen is an unknown quantity at this point 
Solved Threads: 15
jonifen jonifen is offline Offline
Junior Poster

Re: error problem...plss see

 
0
  #5
Feb 2nd, 2008
"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.
Last edited by jonifen; Feb 2nd, 2008 at 6:14 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 62
Reputation: Mbt925 is an unknown quantity at this point 
Solved Threads: 5
Mbt925's Avatar
Mbt925 Mbt925 is offline Offline
Junior Poster in Training

Re: error problem...plss see

 
0
  #6
Feb 2nd, 2008
use this metod instead Update

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. UpdateBatch adAffectCurrent
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 43
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: error problem...plss see

 
0
  #7
Feb 3rd, 2008
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...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. rssupplier.AddNew
  2. rssupplier.Fields("CompanyCode") = txt1.Text
  3. rssupplier.Fields("CompanyName") = txt2.Text
  4. rssupplier.Fields("ContactPerson") = txt3.Text
  5. rssupplier.Fields("Position") = txt4.Text
  6. rssupplier.Fields("TelephoneNo") = txt5.Text
  7. rssupplier.Fields("Address") = txt6.Text
  8. rssupplier.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...
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 113
Reputation: jaasaria is an unknown quantity at this point 
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster

Re: error problem...plss see

 
0
  #8
Feb 4th, 2008
thxxxx for the reply thxx alot when i solved this i will give to all of you a reputation. heheh^_^
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 113
Reputation: jaasaria is an unknown quantity at this point 
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster

Re: error problem...plss see

 
0
  #9
Feb 4th, 2008
i already check my table field but its all the same.

could somebody give me a site on error detection?
i will check it.
plsssssss give me any idea.. ]


thxxxxx .. thxxxxxxxxx
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC