Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
please ensure the code for this ticket software...
If a query from the customer that want to store as a ticket after
completing the issue i want to release the ticket which was blocked earlier how can i
write the code in vb.net and sql server and the ticket numbers want to generate automatically
Posted
Updated 11-Feb-15 23:51pm
v2
Comments
Tomas Takac 12-Feb-15 7:43am    
This is not a good question. What is the problem you are facing? Can you be more specific? Maybe post some code to show what you are doing and where are you stuck.
Kschuler 12-Feb-15 9:57am    
How would you do this if you had to track it with a paper and pencil? You'll need to store your ticket numbers and include a column that tracks if it's reserved or not, and possibly a code as to who has reserved it.

1 solution

You normally do this by letting the database generate the ticket number. You collect at least the basic information you need to add the record to the database, the database gives it a number, you get the ID of the record back and then you've got everything you need to be able to update the record with further information if you need to.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900