E
Edward Reid
This is a question about designing queries and forms in terms of single
vs multiple queries and forms, differing sort order and differing
selection.
I need to response to user inputs with several choices of output.
However, I'm going to format all the outputs identically, just varying
the heading. So I could use the same form for all, and I could use the
same query by varying the selection conditions and sort order.
How would one normally do this? By using several similar forms pointing
to several different queries? Or by manipulating the attributes --
using the WhereCondition of OpenForm and ... well, I haven't figured
out how I would set the OrderBy property of the query, or even if
that's the right thing to do. (I'm figuring I'll have a switchboard
home form.)
But the question is, if the form layout and control bindings are the
same, would you attempt to use a single form and a single query and
alter the selection and ordering? Would you have a form and query for
each case? Something in the middle? (I seriously doubt it's the extreme
of a form and query for each case, but I don't know how feasible vs
confusing it will be to make it all work in one.)
Performance *is* a concern. This database currently has almost 2
million records in the main table, and the DB is about half a gigabyte.
It'll probably grow until it gets close to 2GB or starts showing
problems (that will take a few months), and then I'll have to decide
whether to delete old records, or move to MySQL or SQL Server.
And a couple of related questions:
1) How does the query OrderBy property relate to the Sort specs shown
in query design mode? I expected that the OrderBy property would simply
be ordering specified by the Sort specs, but I don't see the Sort specs
anywhere except in SQL view, and I do *not* see the OrderBy property in
the SQL view.
2) I may want to include some calculated values in the form as
displayed. Am I better off calculating these in the query or in the
form? I suppose it only really matters if I end up needing multiple
forms and/or multiple queries -- if I only need one of each, then I
suppose it doesn't matter much.
Edward
vs multiple queries and forms, differing sort order and differing
selection.
I need to response to user inputs with several choices of output.
However, I'm going to format all the outputs identically, just varying
the heading. So I could use the same form for all, and I could use the
same query by varying the selection conditions and sort order.
How would one normally do this? By using several similar forms pointing
to several different queries? Or by manipulating the attributes --
using the WhereCondition of OpenForm and ... well, I haven't figured
out how I would set the OrderBy property of the query, or even if
that's the right thing to do. (I'm figuring I'll have a switchboard
home form.)
But the question is, if the form layout and control bindings are the
same, would you attempt to use a single form and a single query and
alter the selection and ordering? Would you have a form and query for
each case? Something in the middle? (I seriously doubt it's the extreme
of a form and query for each case, but I don't know how feasible vs
confusing it will be to make it all work in one.)
Performance *is* a concern. This database currently has almost 2
million records in the main table, and the DB is about half a gigabyte.
It'll probably grow until it gets close to 2GB or starts showing
problems (that will take a few months), and then I'll have to decide
whether to delete old records, or move to MySQL or SQL Server.
And a couple of related questions:
1) How does the query OrderBy property relate to the Sort specs shown
in query design mode? I expected that the OrderBy property would simply
be ordering specified by the Sort specs, but I don't see the Sort specs
anywhere except in SQL view, and I do *not* see the OrderBy property in
the SQL view.
2) I may want to include some calculated values in the form as
displayed. Am I better off calculating these in the query or in the
form? I suppose it only really matters if I end up needing multiple
forms and/or multiple queries -- if I only need one of each, then I
suppose it doesn't matter much.
Edward