Steve,
this sounds like filtering the form.
Me.Filter = "[ClosedRecords]" = True
Me.FilterOn = True
Where ClosedRecords is the name of the Yes/No field that records which
records are closed.
When you want to show Open records
Me.Filter = "[ClosedRecords]" = False
Me.FilterOn = True
It would be easy to use an option group for this.
Assuming an option group called optFilter
Private Sub optFilter_AfterUpdate()
Dim strFilter as String
Select case Me.optFilter
Case 1
strFilter = "[ClosedRecords]" = True
Case 2
strFilter = "[ClosedRecords]" = False
Case 3
End Select
If Len(strFilter) >0 Then
Me.Filter = strFilter
Me.FilterOn = True
Else
'show all records
Me.FilterOn = False
End If
End Sub
Jeanette Cunningham
MeSteve said:
Is there a way to change whcih subform is displayed by clicking on a
control
button. I want to switch from open records to closed records without
closing
the main form.