Re: Ridding myself of "You are about to add n records to a New Table"
- From: "Dirk Goldgar" <dg@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 7 Nov 2005 12:18:20 -0500
"David C. Holley" <DavidCHolley@xxxxxxxxxxxx> wrote in message
news:%23S9UTU64FHA.3416@xxxxxxxxxxxxxxxxxxxx
> handn't thought about. I typically only use WITH's if there are
> numerous statement to execute. Not just a handlful.
I tend to use "With" any time I'm going to be referring to an object
more than once in a short section of code, especially if the object
reference needs to be interpreted (e.g., Forms!FormName). That way I
save on whatever time it takes to parse the reference and locate the
object. It probably doesn't make much practical distance, but it feels
tidier to me. I don't think any efficiency considerations would apply,
though, when if the object reference in question is already stored in an
object variable.
I also like using "With Me!ControlName" whenever I'm going to be
referring to multiple properties or methods of the control, because that
way if I ever want to change the name of the control, or copy the same
code for another control, I only have to change the name in one place.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
.
- References:
- Re: Ridding myself of "You are about to add n records to a New Table"
- From: Allen Browne
- Re: Ridding myself of "You are about to add n records to a New Table"
- From: David C. Holley
- Re: Ridding myself of "You are about to add n records to a New Table"
- From: Allen Browne
- Re: Ridding myself of "You are about to add n records to a New Table"
- From: David C. Holley
- Re: Ridding myself of "You are about to add n records to a New Table"
- From: David C. Holley
- Re: Ridding myself of "You are about to add n records to a New Table"
- Prev by Date: Re: code to find a number within a string
- Next by Date: Re: HTML Help File
- Previous by thread: Re: Ridding myself of "You are about to add n records to a New Table"
- Next by thread: Re: Ridding myself of "You are about to add n records to a New Table"
- Index(es):
Relevant Pages
|