Lock all 'old' records (older than user-allocated date)
Hi guys
I've been asked to provide a function where, once all records are 'finalised', they can be 'locked'.
I have a very simple db with two tables: 'Transactions' and 'TransactionItems', which have a one-to-many relationship.
There's a field called 'FinanceReportDate' in 'Transaction' which has format q/yyyy (but stores a full date).
I've been asked that once a user (the boss) 'decides', she is able to lock all records for that quarter (and all previous quarters).
Usability-wise, i was thinking that there could be an extra button on the switchboard, launching a form where the user can enter a date. This date indicates that all records with a FinanceReportDate older than the one given are 'locked'? Perhaps I could set some kind of global FormLockDate variable and on the 'on load' for the Transaction form, it could check that:
If FinanceReportDate isBefore FormLockDate
then Allow Edits = no!
Does anyone have a solution? I can't think how to achieve this and am stuck! Sorry for my silly pseudocode
Thank you!
Hi guys
I've been asked to provide a function where, once all records are 'finalised', they can be 'locked'.
I have a very simple db with two tables: 'Transactions' and 'TransactionItems', which have a one-to-many relationship.
There's a field called 'FinanceReportDate' in 'Transaction' which has format q/yyyy (but stores a full date).
I've been asked that once a user (the boss) 'decides', she is able to lock all records for that quarter (and all previous quarters).
Usability-wise, i was thinking that there could be an extra button on the switchboard, launching a form where the user can enter a date. This date indicates that all records with a FinanceReportDate older than the one given are 'locked'? Perhaps I could set some kind of global FormLockDate variable and on the 'on load' for the Transaction form, it could check that:
If FinanceReportDate isBefore FormLockDate
then Allow Edits = no!
Does anyone have a solution? I can't think how to achieve this and am stuck! Sorry for my silly pseudocode
Thank you!
Last edited: