Where to place "Me.Dirty" in a form?

  • Thread starter Thread starter Amit
  • Start date Start date
A

Amit

Hi,

I have a form to enter Organization information, and a
button on the same form to open a form called
frmRepresentative, to enter information for a new Rep for
the Organization entered. I've placed "Me.Dirty = False"
in the 'OnGotFocus' event for the button that opens the
frmRepresentative form, to save the new Organization
before opening the Rep form.

It seems to be working fine, but I'm not an expert on VBA
yet, so I was wondering if this is correct, or can it
cause problems?

Thanks!

-Amit
 
Normally you would place the code into the Click event procedure, before the
code that opens the next form.
 
Thanks, Allan.

-Amit
-----Original Message-----
Normally you would place the code into the Click event procedure, before the
code that opens the next form.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.



.
 
Back
Top