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.
'main form command button on click event
Private Sub cmdOpenForm_Click()
DoCmd.OpenForm "Master Data: mtl sg", acNormal, , , , acDialog, [material #]
End Sub
'popup form on load event
Private Sub Form_Load()
Dim szFilter As Long
If IsNull(Me.OpenArgs) Then
MsgBox "opened by another form"
DoCmd.Close , Me.Name
Exit Sub
End If
szFilter = Me.OpenArgs
Me.Filter = "[material #] = " & szFilter
Me.FilterOn = True
End Sub