Hi.
i would like to have a message box if the user take to run a command box before to choose a patient.
Here is what I get:
Otherwise if a patient is already choose the following:
The command button should have two functions.
i would like to have a message box if the user take to run a command box before to choose a patient.
Here is what I get:
Code:
If Not CurrentProject.AllForms("MascheraPrincipale").IsLoaded Then
MsgBox "Necessario scegliere un paziente prima di accedere a quest'area", vbOKOnly, "Errore"
DoCmd.OpenForm "FRM_SearchMulti"
Else
Select Case control.ID
Case Else
DoCmd.OpenForm "MascheraPrincipale", , , "ID = " & Forms!MascheraPrincipale!ID
End Select
End If
Code:
DoCmd.OpenForm "FRMPIP", , , "ID = " & Forms!FRM_SearchMulti!SearchResults.Column(6)