Ok... I think I am getting more confused...got mixed up by the first and fifth post. You said each user has a representation in the database in the first post but said you need every user of the program to have an updated representation of the database in the fifth post.
First of all, are there any databases in the client's pc or is there only 1 database on the server application? This make a big deal of a difference because if the database is at the server, then you will have to update the user's own representation(like you said) and you don't have to update any database at the client side(whether automatically or manually) and if you have database on both server and client side, you will have to update the client's database and you might still have to update the user's representation at the server side database.
If the databases are stored on both the server and client's pc, I would suggest to make minor changes to the program.
- since you are interested in using the Thread method, this means you will need to keep the application running at all times. If so, I don't recommend using the Thread method any more.
- I would suggest to you a new Thread method, which is everytime a user makes any changes to the database at the server, it will inform the server who will inturn inform other applications(in this case, all applications will be connected to the server at all times since it will be true for the previous Thread method).
- You can simply create a Thread for the client application that is consistantly waiting for or reading input from the server and when this 'message' from the server is 'update database', your client application will automatically retrieve the new records(whether modified or created) and insert back to your client database.
- if you require to update the user's representation on the server's database too, then I find that the best solution would be to send an email to all of the users.
If the database is stored only at the server end, then things would be a lot more simple.
- you just need to inform the user to update their representation on the server's database. I would prefer to user sending of email too for this case.
Hope this help,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best
