R
Robin Chapple
I have a clubs database where members move between clubs. I need to
keep a history.
I have a Members table which includes MemberID and DateJoinedLeague.
The MemberHistory table includes MemberID, ClubID, DateJoinedThisClub
and a DateTerminated field. Active members are found where
DateTerminated is null.
Past history is very patchy and not all members show a
DateJoinedLeague field.
I need to populate the DateJoinedLeague field when we edit an existing
member and the field is empty. The sub form will show
DateJoinedThisClub and I need that to be included in the main form.
Equally when a new member is added I need the DateJoinedLeague field
to be copied from the DateJoinedThisClub field which is on the
subform.
I tried this in the sub form which does not work:
Private Sub Form_Current()
If IsNull(Forms!frmMembers![DateJoinedLeague]) Then
Forms!frmMembers![DateJoinedLeague] = [DateJoinedThisClub]
End If
End Sub
Error message:
Runtime error 2448
You can't assign a value to this object.
I am unable to find a specific mention of the subject on Google.
Plenty of 'run time' several '2448' but not together.
Thanks,
Robin
keep a history.
I have a Members table which includes MemberID and DateJoinedLeague.
The MemberHistory table includes MemberID, ClubID, DateJoinedThisClub
and a DateTerminated field. Active members are found where
DateTerminated is null.
Past history is very patchy and not all members show a
DateJoinedLeague field.
I need to populate the DateJoinedLeague field when we edit an existing
member and the field is empty. The sub form will show
DateJoinedThisClub and I need that to be included in the main form.
Equally when a new member is added I need the DateJoinedLeague field
to be copied from the DateJoinedThisClub field which is on the
subform.
I tried this in the sub form which does not work:
Private Sub Form_Current()
If IsNull(Forms!frmMembers![DateJoinedLeague]) Then
Forms!frmMembers![DateJoinedLeague] = [DateJoinedThisClub]
End If
End Sub
Error message:
Runtime error 2448
You can't assign a value to this object.
I am unable to find a specific mention of the subject on Google.
Plenty of 'run time' several '2448' but not together.
Thanks,
Robin