Re: Help! "Out of Memory" errors with Appointments created from A

"Chris O''''Neill" <ChrisONeill@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
No need to hide under a rock. I really do appreciate your suggestions as
helps me learn.

Normally, I place all Dim's at the beginning of a subroutine, and I've
done that here too, but at that point I had the Dim's inside the IF/Then
statements so that they wouldn't occur unless the appointment was going to

You can't have conditional Dim statements in any flavour of VB or VBA. Even
though you place them inside If Then blocks, the compiler reads them and
allocates memory for the variables in it's first pass through the code, then
it compiles the code in another pass. So just where you place them inside a
procedure is irrelevant. That's why most developers place them at the start
of the procedure. That way they're conveniently grouped together, and you
might as well anyway (for the above reason).