P
Peter Hibbs
Hi All.
In my databases I often have a need to return data from a Modal form
(opened with the acDialog parameter) to the main form. I usually set
up one (or more) Global variables which are loaded with data in the
Modal form and then read back in the main form.
However, I noticed in a recent post that Albert suggested that this
was a bad, bad idea. OK then, why is that and what other alternative
is there, I've always thought that that was the whole object of Global
variables - to make data available to all forms and reports.
The only other method I can think of is to have a hidden form
permanently open and copy and/or read data in text boxes on it. Surely
though, this is less efficient in terms of resources, i.e. memory and
CPU time, etc.
Now don't get me wrong, I'm not suggesting that Albert is wrong (he
obvoiusly knows a lot, lot, lot more about Access than I ever will)
but if there is some other more reliable or more efiicient method to
achieve this then I would be interested to know.
Thanks in advance for any comments.
Peter Hibbs.
In my databases I often have a need to return data from a Modal form
(opened with the acDialog parameter) to the main form. I usually set
up one (or more) Global variables which are loaded with data in the
Modal form and then read back in the main form.
However, I noticed in a recent post that Albert suggested that this
was a bad, bad idea. OK then, why is that and what other alternative
is there, I've always thought that that was the whole object of Global
variables - to make data available to all forms and reports.
The only other method I can think of is to have a hidden form
permanently open and copy and/or read data in text boxes on it. Surely
though, this is less efficient in terms of resources, i.e. memory and
CPU time, etc.
Now don't get me wrong, I'm not suggesting that Albert is wrong (he
obvoiusly knows a lot, lot, lot more about Access than I ever will)
but if there is some other more reliable or more efiicient method to
achieve this then I would be interested to know.
Thanks in advance for any comments.
Peter Hibbs.