valeryk2000
Registered User.
- Local time
- Today, 16:55
- Joined
- Apr 7, 2009
- Messages
- 157
1) We are using SQL Server (all tables and queries, e.g. stored procedures) are on the server side - NO LINKED TABLES! All tables and st. procedures run via ADO.
2) On the client side we have forms with unbound controls, populated by recordsets.
3) Users select individual records clicking a listbox.
3) If any changes are made - then we need to update the records in SQL Server tables.
4) There is a button Save Changes on the form that would do the updating.
5) However the user might forget to click this button and select next record thinking that the changes are saved automatically (which would be the case if it was an access database where tables are linked to controls with dynasets).
6) We need to alert users with pop-up message box Do you want to save changes? every time s/he selects a new record from the list.
7) HOWEVER, if the user was just looking, without clicking any of the controls on the form this pop-up does not make sense and annoy our users.
8) SO WE NEED A WAY TO check if controls on the form were clicked (at least!).
9) We cannot use DIRTY property - it works only when the data in the tables are changed.
10) One of the way to do so is to use a flag variable that would be set to TRUE when any of the controls is clicked. So ... it takes a lot of code.
11) May be somebody can suggest a better solution?
Thanx
2) On the client side we have forms with unbound controls, populated by recordsets.
3) Users select individual records clicking a listbox.
3) If any changes are made - then we need to update the records in SQL Server tables.
4) There is a button Save Changes on the form that would do the updating.
5) However the user might forget to click this button and select next record thinking that the changes are saved automatically (which would be the case if it was an access database where tables are linked to controls with dynasets).
6) We need to alert users with pop-up message box Do you want to save changes? every time s/he selects a new record from the list.
7) HOWEVER, if the user was just looking, without clicking any of the controls on the form this pop-up does not make sense and annoy our users.
8) SO WE NEED A WAY TO check if controls on the form were clicked (at least!).
9) We cannot use DIRTY property - it works only when the data in the tables are changed.
10) One of the way to do so is to use a flag variable that would be set to TRUE when any of the controls is clicked. So ... it takes a lot of code.
11) May be somebody can suggest a better solution?
Thanx