Good way to multiple access SQL
-
Hi,
Sorry if my question is too simple but I ask me what is the good way to multiple access SQL.My Qt software:
1- Load data in class and display in widget
2- User can changes data and Update SQL through the class.
Ok simple!But in multiple access case:
1- USER 1 Load data in class and display in widget
2- USER 2 Load data in class and display in widget
3- USER 1 makes some data changes and Update SQL through the class.
4- USER 2 makes some data changes and Update SQL through the class.
-> Error: the changements of USER 1 are erased by USER 2 without message or other.How to do this ? Thanks
-
-
Use the original data as a where clause for the
update
statement. This way if the data has changed in the meantime you can know, and show a message to the user, even suggest him a reload. -
Use the original data as a where clause for the
update
statement. This way if the data has changed in the meantime you can know, and show a message to the user, even suggest him a reload.@kshegunov This, complicates the SQL requests...
-
@kshegunov This, complicates the SQL requests...