integritycare
Technical User
Hi all,
Really would appreciate some help on this issue.
I have a mainform on which I have a subform. On the mainform I would like to put an option group which can slect the differing queries for the subform.
The code I am using for the oprion group is;
I realise that i could uput these on the continous form but wanted to put them in a vertical display.
So how do I relate this code so that when selected on the mainform it will select the query for the subform.
Many thanks
Integrity
Really would appreciate some help on this issue.
I have a mainform on which I have a subform. On the mainform I would like to put an option group which can slect the differing queries for the subform.
The code I am using for the oprion group is;
Code:
Private Sub Frame1_AfterUpdate()
Select Case Frame1.Value
Case 1
Me.RecordSource = "Admin"
Case 2
Me.RecordSource = "Training"
Case 3
Me.RecordSource = "SystemManagement"
Case 4
Me.RecordSource = "Service Delivery"
Case 5
Me.RecordSource = "Safety"
Case 6
Me.RecordSource = "Templates"
Case 7
Me.RecordSource = "Induction"
End Select
End Sub
I realise that i could uput these on the continous form but wanted to put them in a vertical display.
So how do I relate this code so that when selected on the mainform it will select the query for the subform.
Many thanks
Integrity