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

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
 
A

Allen Browne

Normally you would place the code into the Click event procedure, before the
code that opens the next form.
 
A

Amit

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.



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top