F
Fred Boer
Hello!
I am engaged in a bit of spring cleaning in my little application. I am
working on organizing my queries... you know, throwing out queries that I
don't actually use anymore, adding comments to their description fields to
show what forms use which queries, etc.. I have found that I have a number
of queries which are used by various forms, in different places (such as the
data source for one form, or a row source for a combobox on another form).
I am concerned that, having used the original query in a number of different
places, if I ever happen to modify the original query, I might
unsuspectingly break things in other places. Is it bad practice to use
queries in this way? Should I have created a new query for use in each
individual circumstance? This would lead to a lot of queries, I suspect, but
I suppose with a good naming convention it might be easier to keep track of
them all - and if I ever edited a query I would know that it would affect
only the existing control.
Or would it be better practice, for example, to only use saved queries as
data sources for forms, and for comboboxes, use embedded SQL statements? I
actually was experimenting with replacing *all* my saved queries with
embedded SQL statements when this issue began to nag at me...
Thanks!
Fred Boer
I am engaged in a bit of spring cleaning in my little application. I am
working on organizing my queries... you know, throwing out queries that I
don't actually use anymore, adding comments to their description fields to
show what forms use which queries, etc.. I have found that I have a number
of queries which are used by various forms, in different places (such as the
data source for one form, or a row source for a combobox on another form).
I am concerned that, having used the original query in a number of different
places, if I ever happen to modify the original query, I might
unsuspectingly break things in other places. Is it bad practice to use
queries in this way? Should I have created a new query for use in each
individual circumstance? This would lead to a lot of queries, I suspect, but
I suppose with a good naming convention it might be easier to keep track of
them all - and if I ever edited a query I would know that it would affect
only the existing control.
Or would it be better practice, for example, to only use saved queries as
data sources for forms, and for comboboxes, use embedded SQL statements? I
actually was experimenting with replacing *all* my saved queries with
embedded SQL statements when this issue began to nag at me...
Thanks!
Fred Boer