Hi all,
I've created the below code so if no records (in a report) are not found nothing happens.
It doesn't work thou!
Any suggestions
Thanks in advance
Kenneth
Private Sub cmdpicklistregular_Click()
DoCmd.OpenReport "rptPickingList"
If Reports![rptPickingList].RecordsetClone.RecordCount = 0 Then
MsgBox "No records Found. " & Chr(10) & Chr(13) & "Kindly check Picking Numbers. ", , pro
DoCmd.close acForm, "PickingNumbers"
End If
End Sub
I've created the below code so if no records (in a report) are not found nothing happens.
It doesn't work thou!
Any suggestions
Thanks in advance
Kenneth
Private Sub cmdpicklistregular_Click()
DoCmd.OpenReport "rptPickingList"
If Reports![rptPickingList].RecordsetClone.RecordCount = 0 Then
MsgBox "No records Found. " & Chr(10) & Chr(13) & "Kindly check Picking Numbers. ", , pro
DoCmd.close acForm, "PickingNumbers"
End If
End Sub