I want to run queries that I have saved in the Queries tab of my *.mdb file by affixing the queries to the .RecordSource of a View all form so that the same form can be used to view different sets of data. The user is to be presented with a form with option buttons where they can choose an option. I ran a Select Case statement that selects the correct code when the corresponding option button is selected - but how do I get the code to run? If I do DoCmd.OpenQuery how can I attach the result to my form? I currently have this
What do I assign to the RecordSource of my form?
What? Who? ME????
Code:
With Forms("View all Requisitions")
Select Case mChosenValue
Case 1
.RecordSource ' = ?????
Case 2
.RecordSource
Case 3
.RecordSource
Case 4
Case 5
Case 6
End Select
End With
What do I assign to the RecordSource of my form?
What? Who? ME????