good day !
I have an action query. When runs it and no result, need to give a msg "There is no data". How can i do this ? below is the code which i have used presently.
Private Sub Command0_Click()
If MsgBox("You are about to asign Vessel/Voyage for imported data.", vbQuestion + vbYesNo + vbDefaultButton1) = vbYes Then
DoCmd.OpenQuery "data_Appendto_ImptsMain", acViewNormal
DoCmd.Close acForm, "Admin_Frm_dataActive"
Else
Me.Command0.SetFocus
End If
I have an action query. When runs it and no result, need to give a msg "There is no data". How can i do this ? below is the code which i have used presently.
Private Sub Command0_Click()
If MsgBox("You are about to asign Vessel/Voyage for imported data.", vbQuestion + vbYesNo + vbDefaultButton1) = vbYes Then
DoCmd.OpenQuery "data_Appendto_ImptsMain", acViewNormal
DoCmd.Close acForm, "Admin_Frm_dataActive"
Else
Me.Command0.SetFocus
End If