G
Guest
I have a subform (subDonations) that I want to change based upon a choice in
in an option group (grpReports). I am using the following code, but it isn't
working. Any suggestions?
Thanks.
If Me.grpReports = 1 Then
Me.subDonations.SourceObject = subDonationsByContacts
ElseIf Me.grpReports = 2 Then
Me.subDonations.SourceObject = subDonationsByChurches
ElseIf Me.grpReports = 3 Then
Me.subDonations.SourceObject = subDonationsByForeignContacts
ElseIf Me.grpReports = 4 Then
e.subDonations.SourceObject = subDonationsByForeignChurches
End If
in an option group (grpReports). I am using the following code, but it isn't
working. Any suggestions?
Thanks.
If Me.grpReports = 1 Then
Me.subDonations.SourceObject = subDonationsByContacts
ElseIf Me.grpReports = 2 Then
Me.subDonations.SourceObject = subDonationsByChurches
ElseIf Me.grpReports = 3 Then
Me.subDonations.SourceObject = subDonationsByForeignContacts
ElseIf Me.grpReports = 4 Then
e.subDonations.SourceObject = subDonationsByForeignChurches
End If