MarkWaddington
Programmer
I have added a main "client details" form on my database and on the form I have put an "Updated By" subform which automatically adds the username of the person who has inputted data on the form.
Basically I have attached a macro to the Beforeupdate event handler which fills in the values on the subform (i.e. username).
I refer to the subform in my macro as follows:
(Condition):
IsNull([Forms]![Client]![Client_Update].[Form]![InputtedBy])
(Action):
SetValue with CurrentUser()
Now when I go to my form and try to enter a record I get the following error message:
You can't assign a value to this object
* The object may be a control on a read only form (WHICH IT ISN'T)
* The object may be on a form that is open in design view (WHICH IT ISN'T)
* The value may be too large for this field (NOPE, IT ISN'T).
Please can anyone help?
Thanks in advance!
Mark Waddington.
Basically I have attached a macro to the Beforeupdate event handler which fills in the values on the subform (i.e. username).
I refer to the subform in my macro as follows:
(Condition):
IsNull([Forms]![Client]![Client_Update].[Form]![InputtedBy])
(Action):
SetValue with CurrentUser()
Now when I go to my form and try to enter a record I get the following error message:
You can't assign a value to this object
* The object may be a control on a read only form (WHICH IT ISN'T)
* The object may be on a form that is open in design view (WHICH IT ISN'T)
* The value may be too large for this field (NOPE, IT ISN'T).
Please can anyone help?
Thanks in advance!
Mark Waddington.