Subject | Re: [IBO] Need to make forms "DatasetAware" |
---|---|
Author | lester@lsces.co.uk |
Post date | 2001-11-22T09:45:58Z |
> Not everyone will agree but... Put the queries on your form. That's what II'm getting there, but old habits are hard to break - along
> do.
with 15 years of programs.
> DataModules are for things which are global. If something is directlyAnd DataModules have their place, but not so necessary with
> related to a form, put the queries and transactions, etc. right on it.
IBO.
> In my apps, forms are independent objects which I keep as self contained asAnd that approach has certainly tidied up my legacy programs
> possible.
- when I'm allowed to change them <g>
The bit I'm not quite clear on is if I have a largish set of
data that is used in several places, i.e. A grid view form
and a single record view ( I toggle between the two ) is it
better to create a new query for the single record, or just
share the grid view data. I'm sharing at present as having
two separate queries was too slow, but that was probably how
I was using it <g> as the customer likes to step on to
adjacent records once they are in the general area of the
search using the navigate buttons.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services