> 1. you are depending on the behaviour of something over which you[color=blue]
> have no control: VBA creates a hidden wrapper around each controls[/color]
Whereas when I refer to the 'visible' property of a form
I am depending on the behaviour of something over which I
do have control? And when I refer to the magic default
collection of the form I am depending on the behaviour of
something over which I do have control?
[color=blue]
> 2. in certain circumstances, the dot operator can lead to corruption
> of the form. I've lost track of what those circumstances are,
> though. Steve Jorgensen experienced one case of it, I think.[/color]
Steve experienced a lot of corruption when he started using
Access 2000: Later, he didn't get as much corruption. The
same thing happened to me... I stopped using MDE libraries:
I couldn't get them to work reliably at all. He stopped using
form properties. Now, we have all our libraries back again,
and we continue to use dynamically created form properties as
well as public form variables, Let, and Get.
AFAIK, Steve never posted 'circumstances' that led to corruption,
except that developing VBA in Access 2000 can lead to project
corruption, and project corruption can lead to database
corruption. Always close and save after making changes: never
modify a form opened in view mode: always decompile after
setting break points: close, backup and decompile often.
Steve has gone on to write elaborate code to replace the
functionality of form properties: it would not be appropriate
to advise people to just abandon the use of form properties.
[color=blue]
> 3. code written using the ! operator is easier to read, as it
> tells you you're referring to a control or field.[/color]
Code written using the ! operator is more difficult to read,
as it obscures the difference between controls and fields.
(david)
"David W. Fenton" <dXXXfenton@bway.net.invalid> wrote in message
news:Xns94D3E54B4411dfentonbwaynetinvali@24.168.12 8.86...[color=blue]
> "david epsom dot com dot au" <david@epsomdotcomdotau> wrote in
> news:40887449$0$27649$61ce578d@news.syd.swiftdsl.c om.au:
>[color=green]
> > I am not aware of any disadvantages to using 'control' properties.[/color]
>
> If you mean referring to controls using the . operator, here are
> some:
>
> 1. you are depending on the behavior of something over which you
> have no control: VBA creates a hidden wrapper around each controls
> that allows you to treat them as properties/members of the form.
>
> 2. in certain circumstances, the dot operator can lead to corruption
> of the form. I've lost track of what those circumstances are,
> though. Steve Jorgensen experienced one case of it, I think.
>
> 3. code written using the ! operator is easier to read, as it tells
> you you're referring to a control or field.
>
> --
> David W. Fenton
http://www.bway.net/~dfenton
> dfenton at bway dot net
http://www.bway.net/~dfassoc[/color]