User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 427,114 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,109 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 1416 | Replies: 2
Reply
Join Date: Aug 2006
Posts: 27
Reputation: stan yost is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
stan yost stan yost is offline Offline
Light Poster

Help program adds 2 identical records to table

  #1  
Oct 12th, 2006
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Posts: 2,724
Reputation: WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold 
Rep Power: 15
Solved Threads: 222
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Maven

Re: program adds 2 identical records to table

  #2  
Oct 12th, 2006
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.
Age is unimportant -- except in cheese
Reply With Quote  
Join Date: Aug 2006
Posts: 27
Reputation: stan yost is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
stan yost stan yost is offline Offline
Light Poster

Re: program adds 2 identical records to table

  #3  
Oct 12th, 2006
How can I tell when vb executes something that I don't know about, such as this onchange?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 6:11 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC