D
Dan
I posted something similar yesterday in the report section, trying to figure
out how to re-use queries. It seems wasteful to me to write a SQL statement
several times throughout a program, changing it slightly each time.
I am therefore looking for a way to use a pre-defined query instead of the
SQL or I need to use the SQL in its own module or procedure and then figure
out how to make the changes outside of the procedure.
Here is what prompted this line of thought:
With Reports![rptRosters]
.Filter = "ID = Name of pre-defined Query"
.FilterOn = True
End With
I could easily use a select statement and get what I need, but then I would
be redoing something that is already done.
Thanks for any help,
out how to re-use queries. It seems wasteful to me to write a SQL statement
several times throughout a program, changing it slightly each time.
I am therefore looking for a way to use a pre-defined query instead of the
SQL or I need to use the SQL in its own module or procedure and then figure
out how to make the changes outside of the procedure.
Here is what prompted this line of thought:
With Reports![rptRosters]
.Filter = "ID = Name of pre-defined Query"
.FilterOn = True
End With
I could easily use a select statement and get what I need, but then I would
be redoing something that is already done.
Thanks for any help,