Hi all,
I'm trying to restrict alterations to an existing record according to user.
In the end what i'm trying to accomplish is:
Only the user that entered a new record is allowed to make modifications, at a later time (updating with new and available info), to that record.
Other users may be able to view that record but not change anything for that record.
Currently, I have a custom login that carries over the users username - this is used to identify from what area/department he's from and filter the viewing of records in the database (only see's records that belong to his area/department - this isnt much of a security issue but simple more user friendly).
I was hoping that maybe I can make use of this to somehow restrict/permit the updating/altering of records that that user made.
I'm not sure but i believe i should start with the onopen fucntion of a form but here's where i'm disastrous -vba code.
To the best of my capabilities this is my attempt to show what i'm trying to do:
if username.value = author of the record
then frmInput.edit = true
else frmInput.edit = false
endif
However like i said before other users from the area/department need to see the records but not allowed to edit them.
Many thanks for your help.
Newbie VBA Coder,
Ode
I'm trying to restrict alterations to an existing record according to user.
In the end what i'm trying to accomplish is:
Only the user that entered a new record is allowed to make modifications, at a later time (updating with new and available info), to that record.
Other users may be able to view that record but not change anything for that record.
Currently, I have a custom login that carries over the users username - this is used to identify from what area/department he's from and filter the viewing of records in the database (only see's records that belong to his area/department - this isnt much of a security issue but simple more user friendly).
I was hoping that maybe I can make use of this to somehow restrict/permit the updating/altering of records that that user made.
I'm not sure but i believe i should start with the onopen fucntion of a form but here's where i'm disastrous -vba code.
To the best of my capabilities this is my attempt to show what i'm trying to do:
if username.value = author of the record
then frmInput.edit = true
else frmInput.edit = false
endif
However like i said before other users from the area/department need to see the records but not allowed to edit them.
Many thanks for your help.
Newbie VBA Coder,
Ode