943,969 Members | Top Members by Rank

Ad:
Oct 12th, 2006
0

program adds 2 identical records to table

Expand Post »
My vb 5.0 program is adding 2 identical records to a table each time I run it. Does anyone know what would cause this?
Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
stan yost is offline Offline
29 posts
since Aug 2006
Oct 12th, 2006
0

Re: program adds 2 identical records to table

You are somehow runing the function that adds the record twice. Could be that you have a couple ways to execute the function and because of the way your events are linked you run through the code twice.

I see this happen when you link an update via OnChange event on a TextBox for example, then when you change the box it executes the routine,which in turn updates the TextBox with a new value -- which kicks off the OnChange again.
Moderator
Reputation Points: 3278
Solved Threads: 894
Posting Sage
WaltP is offline Offline
7,744 posts
since May 2006
Oct 12th, 2006
0

Re: program adds 2 identical records to table

How can I tell when vb executes something that I don't know about, such as this onchange?
Reputation Points: 10
Solved Threads: 0
Light Poster
stan yost is offline Offline
29 posts
since Aug 2006

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: DataReport Height
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Proper case in Visual basic 6.0





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


Follow us on Twitter


© 2011 DaniWeb® LLC