G
Guest
I'm using the following code:
Private Sub Paid_Date_KeyDown(Shift As Integer)
On Error GoTo Err_Paid_Date_KeyDown
If Shift = acCtrlMask Then
Me.paid_date = Me.inv_date
Set rst = Me.Recordset.Clone
If rst.EOF = True Then 'Here's the problem
Me![OrderReview].[Final].Set Focus
Else
DoCmd.GoToRecord
End If
End If
Exit_Paid_Date_KeyDown:
The EOF test does not work. Even though there is only one record in the
subform, EOF is always false. What am I doing wrong?
Private Sub Paid_Date_KeyDown(Shift As Integer)
On Error GoTo Err_Paid_Date_KeyDown
If Shift = acCtrlMask Then
Me.paid_date = Me.inv_date
Set rst = Me.Recordset.Clone
If rst.EOF = True Then 'Here's the problem
Me![OrderReview].[Final].Set Focus
Else
DoCmd.GoToRecord
End If
End If
Exit_Paid_Date_KeyDown:
The EOF test does not work. Even though there is only one record in the
subform, EOF is always false. What am I doing wrong?