K
Ken Hudson
I have the following event code:
Private Sub cboProjects_Change()
frmPOsub.Requery
frmPOsub.Form.Recordset.MoveFirst
End Sub
If the frmPOsub has no records, I get an error message. I am trying to use
an "If" statement to bypass that error, but don't know the correct syntax.
The following does not work.
Private Sub cboProjects_Change()
frmPOsub.Requery
If frmPOsub.Form.Recordset.Count > 0 Then
frmPOsub.Form.Recordset.MoveFirst
End If
End Sub
Can someone please assist?
Private Sub cboProjects_Change()
frmPOsub.Requery
frmPOsub.Form.Recordset.MoveFirst
End Sub
If the frmPOsub has no records, I get an error message. I am trying to use
an "If" statement to bypass that error, but don't know the correct syntax.
The following does not work.
Private Sub cboProjects_Change()
frmPOsub.Requery
If frmPOsub.Form.Recordset.Count > 0 Then
frmPOsub.Form.Recordset.MoveFirst
End If
End Sub
Can someone please assist?