D
Dave
Hi
I'm using Access 2003 on Windows XP. I want the program to enable/disable
fields in a record on a subform dependent on the user rights. I am writing
the code in the subform code module. Can't seem to find the correct syntax
to disable some fields in the record and not others. Each record has the
opportunity to either be enabled or not based on the user. I can set the
AllowAdditions or AllowEdits for each record on the subform when appropriate,
but there are cases when a user is required to edit a value in a single
field, but not the remaining fields.
I have tried variants of the following syntax:
Me.Recordset.Form.Fields("Quantity").Enabled = False
Me.Recordset.Fields("UnitMeas").Enabled = False
Neither seems to be working. Your help is much appreciated.
Dave
I'm using Access 2003 on Windows XP. I want the program to enable/disable
fields in a record on a subform dependent on the user rights. I am writing
the code in the subform code module. Can't seem to find the correct syntax
to disable some fields in the record and not others. Each record has the
opportunity to either be enabled or not based on the user. I can set the
AllowAdditions or AllowEdits for each record on the subform when appropriate,
but there are cases when a user is required to edit a value in a single
field, but not the remaining fields.
I have tried variants of the following syntax:
Me.Recordset.Form.Fields("Quantity").Enabled = False
Me.Recordset.Fields("UnitMeas").Enabled = False
Neither seems to be working. Your help is much appreciated.
Dave