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.
Private Sub cmdDepartment_Click()
On Error GoTo Err_cmdDepartment_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmMessage"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria, , acDialog, "Click To View Spending"
Exit_cmdDepartment_Click:
Exit Sub
Err_cmdDepartment_Click:
MsgBox Err.Description
Resume Exit_cmdDepartment_Click
End Sub
Private Sub Form_Open(Cancel As Integer)
Select Case Me.OpenArgs
Case Is = "Click To View Spending"
With Me
.Caption = "Departmental Spending"
.lblMessage.Caption = "Choose The Dept To View and" & _
" Select appropriate button..."
.Command1.Caption = "Dept 600"
.Command2.Caption = "Dept 650"
.Command3.Caption = "Cancel"
.txtIcon = "$"
.txtIcon.ForeColor = vbGreen
End With
End Select
End Sub
Private Sub Command1_Click()
Select Case Me.OpenArgs
Case Is = "Click To View Spending"
'Do Something here
DoCmd.Close
Dim stDocName600 As String
Dim stLinkCriteria As String
stDocName600 = "SpendingView600"
DoCmd.OpenForm stDocName600, , , stLinkCriteria
End Select
End Sub