I have a Menu form (picture attached) - so you
1) click on Finish an Incomplete Request
2) Select the request from the dropdown
3) Make the form visible so they can edit.
What's happening is that in my code I was originally using an OpenForm command and it's opening the form in a new tab, but what I want is to make the form visible with the filter in place. Where do I need to change my code to do this?
Code:
Private Sub cboSelectInc_AfterUpdate()
Dim ProjNo As String
Dim ProjFilter As String
ProjNo = Me.cboSelectInc
ProjFilter = "txtProjectNumber = '" & ProjNo & "'"
DoCmd.OpenForm "frmIncRequestsQ", acNormal, "FilterInc", ProjFilter
Forms![frmIncRequestsQ].Visible = True
DoCmd.Close acForm, "MainMenu"
End Sub