My code for an option group [below] works fine. I now need to to another option group that checks both CaseStatus and assignedto.
Some help with the if statement to require both matches?
Thanks,
Dave
Private Sub Frame22_AfterUpdate()
Frame33 = Null
If Frame22 = 1 Then
DoCmd.ApplyFilter , "[casestatus]='open'"
End If
If Frame22 = 2 Then
DoCmd.ApplyFilter , "[casestatus]='closed'"
End If
If Frame22 = 3 Then
DoCmd.ApplyFilter , "[Assignedto]= 'Unassigned'"
End If
If Frame22 = 4 Then
DoCmd.ApplyFilter , "[casestatus]<>null"
End If
End Sub
Some help with the if statement to require both matches?
Thanks,
Dave
Private Sub Frame22_AfterUpdate()
Frame33 = Null
If Frame22 = 1 Then
DoCmd.ApplyFilter , "[casestatus]='open'"
End If
If Frame22 = 2 Then
DoCmd.ApplyFilter , "[casestatus]='closed'"
End If
If Frame22 = 3 Then
DoCmd.ApplyFilter , "[Assignedto]= 'Unassigned'"
End If
If Frame22 = 4 Then
DoCmd.ApplyFilter , "[casestatus]<>null"
End If
End Sub