computermat
Active member
- Joined
- Jun 17, 2007
- Messages
- 28
- Programming Experience
- Beginner
Hi, i have built a booking system that is used simultaniously by 4 users.
Interactions with SQL Server
Database is downloaded onto a client machine, new row is added to this then the primary key that is set as Booking ID is bound to a label on my main form.
After the customer and booking details are entered the data is sent back to the server and the label that has the booking id in it is used as a parameter for printing reports on the next form.
Problem
The problem is that the booking ID is being duplicated on client machines becuase the booking being made with this ID number has not been completed and therfore the server does not know it exists so other users are getting it.
How could i get round this?
I have had a thought of downloading the database and saving the new details all as one transaction but then the data wouldn't be saved that has been entered in the binded textboxes.
Any help would be appreciated
Interactions with SQL Server
Database is downloaded onto a client machine, new row is added to this then the primary key that is set as Booking ID is bound to a label on my main form.
After the customer and booking details are entered the data is sent back to the server and the label that has the booking id in it is used as a parameter for printing reports on the next form.
Problem
The problem is that the booking ID is being duplicated on client machines becuase the booking being made with this ID number has not been completed and therfore the server does not know it exists so other users are getting it.
How could i get round this?
I have had a thought of downloading the database and saving the new details all as one transaction but then the data wouldn't be saved that has been entered in the binded textboxes.
Any help would be appreciated