944,183 Members | Top Members by Rank

Ad:
Nov 7th, 2009
0

Error!!!

Expand Post »
My subscription system is now running though with errors here and there.the error that concerns me a lot is a runtime error that says
Quote ...
multiple steps generated an error check value status
and points to this code....
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. r.Fields("companyphone") = txtcphone.Text
  2. r.Fields("companywebsite") = txtcwebsite.Text
and this code is in my save button. at times the error doesnt show but at times it pops up when a user is testing...
how best can i trap such an error because i know there must be a way which i dont know.
thank you in advance!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Israelsimba is offline Offline
41 posts
since Oct 2009
Nov 11th, 2009
0
Re: Error!!!
check the fields if it allows null value. if not then put a trappings to force the user to enter a value on the field.
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Nov 11th, 2009
0
Re: Error!!!
it doesnt enforce any fields in the database..but i have enforced at form level..ie a person cannot save without entering all the required fields on the form. this error pops up a any time but not always..
Reputation Points: 10
Solved Threads: 0
Light Poster
Israelsimba is offline Offline
41 posts
since Oct 2009
Nov 12th, 2009
0
Re: Error!!!
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1.  
  2. on error goto Er
  3.  
  4. r.Fields("companyphone") = txtcphone.Text
  5.  
  6. r.Fields("companywebsite") = txtcwebsite.Text
  7. exit sub
  8. Er:
  9. msgbox "Error occured"
Please post your entire code inside save button...
Last edited by akhileshbc; Nov 12th, 2009 at 4:14 am.
Reputation Points: 10
Solved Threads: 5
Newbie Poster
akhileshbc is offline Offline
14 posts
since Nov 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: communicate with the system
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VB6 - Access Database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC