C
CJ
Hi Groupies
I am trying to populate a Date from one subform to another subform
on the same Parent but the field is not populating consistently so I am
trying to force it. I have tried a few things, a couple are below:
I tried this first:
Private Sub lngEmpID_BeforeUpdate(Cancel As Integer)
If IsNull(Me.Parent.txtDefaultDate) And IsNull(Me.dtmDate) Then
Me.dtmDate.Value = Date
ElseIf Not IsNull(Me.dtmDate) Then
Me.dtmDate = Me.dtmDate
Else
Me.dtmDate.Value = Me.Parent.txtDefaultDate
End If
Then I changed the If statement to:
Me.Parent.fsubEmployeeDayCosts.dtmDate.Value = Me.dtmDate.Value
Neither of them are working. Could somebody please
solve this issue for me.
I am trying to populate a Date from one subform to another subform
on the same Parent but the field is not populating consistently so I am
trying to force it. I have tried a few things, a couple are below:
I tried this first:
Private Sub lngEmpID_BeforeUpdate(Cancel As Integer)
If IsNull(Me.Parent.txtDefaultDate) And IsNull(Me.dtmDate) Then
Me.dtmDate.Value = Date
ElseIf Not IsNull(Me.dtmDate) Then
Me.dtmDate = Me.dtmDate
Else
Me.dtmDate.Value = Me.Parent.txtDefaultDate
End If
Then I changed the If statement to:
Me.Parent.fsubEmployeeDayCosts.dtmDate.Value = Me.dtmDate.Value
Neither of them are working. Could somebody please
solve this issue for me.