Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]Public FirstCaller As String[/blue]
[blue]Public Sub CommonFrmCtl(frmName As String)
If FirstCaller = "" Then
DoCmd.OpenForm "[purple][B][I]CommonFormName[/I][/B][/purple]"
ElseIf frmName = FirstCaller Then
firtscaller = ""
DoCmd.Close acForm, "[purple][B][I]CommonFormName[/I][/B][/purple]", acSaveYes
End If
End Sub[/blue]
[blue]Call CommonFrmCtl(Me.Name)[/blue]
[blue]Call CommonFrmCtl(Me.Name)[/blue]
[blue]Public Sub CommonFrmCtl(frmName As String)
If FirstCaller = "" Then
[purple][b]FirstCaller = frmName[/b][/purple]
DoCmd.OpenForm "CommonFormName"
ElseIf frmName = FirstCaller Then
FirtsCaller = ""
DoCmd.Close acForm, "CommonFormName", acSaveYes
End If
End Sub[/blue]