matthewnsarah07
11-21-2008, 07:47 AM
Hi
I am using the following code to open a another form but the Where criteria is not filtering correctly - all field and form names are correct and the subform where the button is, is a continuous form
Hope someone can point out what i have done wrong here
Private Sub Command21_Click()
Dim strForm As String
Select Case Me.Accept_etc
Case Is = "Awaiting TM Approval"
strForm = "frmeditrequest"
DoCmd.OpenForm strForm, acNormal, , [Request Number] = [Forms]![frmmain]![frmmainsub].[Form]![Request Number]
Case Else
MsgBox "This request can no longer be altered", vbOKOnly
End Select
End Sub
I am using the following code to open a another form but the Where criteria is not filtering correctly - all field and form names are correct and the subform where the button is, is a continuous form
Hope someone can point out what i have done wrong here
Private Sub Command21_Click()
Dim strForm As String
Select Case Me.Accept_etc
Case Is = "Awaiting TM Approval"
strForm = "frmeditrequest"
DoCmd.OpenForm strForm, acNormal, , [Request Number] = [Forms]![frmmain]![frmmainsub].[Form]![Request Number]
Case Else
MsgBox "This request can no longer be altered", vbOKOnly
End Select
End Sub