I have developed one application using MS Sql Server and Visual Basic 6.0. Now user enters the data and press save button on same time, bill no is saved and both data is getting clubed and single bill no is generated instead of two different billno so please guide me how to handle this problem.
You need to run your program in debug mode and step through the code one line at a time. Have a look at the values in your variables and see if they mach what you expect.
This is one of the skills of a programmer. When things don't go as expected you need to be able to figure out what went wrong.
If you don't have or can't use a debugger you can create a debug mode in your program perhaps with a command line variable or a value in a config file. When debug mode is turned on your program will output lots of information to a log file with details of module names and variable values. This is also useful if later on a user is having problems you can instruct them to turn on debug mode and send you the output.
Hope this helps.
221 views
Usually answered in minutes!
×