I am trying to update a date/time field in a subform, and when I get to the line in the code telling it to set end_date = Now(), I get Run Time Error 2448: You can't assign a value to this object.
I triple checked, and subform is set to allow additions, edits and deletions.
How can I get this to put Now() as the end_date in the subform?
Many thanks!
Code:
If Me!group_ID = Null Then
Me!group_ID = Null
Else
If Me!group_ID = Forms![Issue Details]![tblWithGroup-datasheet]!ID Then
.Edit
[COLOR=red]Forms![Issue Details]![tblWithGroup-datasheet]!End_Date = Now()[/COLOR]
'Me!group_ID = 999
End If
End If
I triple checked, and subform is set to allow additions, edits and deletions.
How can I get this to put Now() as the end_date in the subform?
Many thanks!