My query prompts for 3 fields and I want to use a Form to get this data from the User since one of the fields (Team) has 10 choices. Unfortunately I can't figure out the rest of the code below that would run the query and display the results to the screen just like using CurrentDb.Execute.
I don't want to create a temp table form the results since I'm going to reuse this Form for many queries and their output field count is different.
Set qdf = CurrentDb.QueryDefs(QueryName)
qdf.Parameters(0) = Me.StartDate
qdf.Parameters(1) = Me.EndDate
qdf.Parameters(2) = Team
I don't want to create a temp table form the results since I'm going to reuse this Form for many queries and their output field count is different.
Set qdf = CurrentDb.QueryDefs(QueryName)
qdf.Parameters(0) = Me.StartDate
qdf.Parameters(1) = Me.EndDate
qdf.Parameters(2) = Team