Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi friends,
My name is Niranjan, i have a small project in VB 6.0 AND Access Database...

I have 3 systems connected in LAN, and the project is running in all these 3 systems.
whats happening is when all three users are saving the record at a time, the records in the database are overlapping with the same bill number..

Please help to get me out of this problem.


Thank You.,
Posted
Comments
Maciej Los 4-Dec-13 10:24am    
Share your code. We can't help you without it, because we didn't see your screeen and we can't read in your mind.
We need more details about saving data. Please, use "Improve question" widget.
;)
AlexDpars 4-Dec-13 11:47am    
You should try to make your bill number column auto incremented. Doing that will ensure you to have a different bill number on each row. If this solution could be helpful for you I will post the complete solution.
ZurdoDev 4-Dec-13 12:28pm    
You need to implement some concurrency rules.

1 solution

You have several options ... here are just a few

With a nod to RyanDev - try implementing some concurrency rules ... have a look at this discussion on mdb concurrency[^]

With a nod to AlexDpars ... you could have a column that auto-increments and use that for your invoice number ... this link is old but still applies fields that generate automatically[^]. You might want to reset the number after trying it out ... how to reset an Autonumber field[^]. Be aware that many people do not like Autonumber fields - however, I've used them successfully and frequently.

You could upgrade to a more robust multi-user database - there are several offerings out there but you will probably still have to consider building in concurrency rules - the advantage that many other RDBMS will bring is being able to use Triggers/Stored Procedures to implement those rules.
 
Share this answer
 
Comments
Maciej Los 10-Dec-13 15:54pm    
5ed!
CHill60 10-Dec-13 15:57pm    
Thank you!

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