By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,106 Members | 2,474 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,106 IT Pros & Developers. It's quick & easy.

Dirty Subform

P: n/a
Is this the way to determine if a subform is dirty?

If Me!SFrmEnterActivityList.Form.Dirty Then

I use this statement in the Unload event of a form. When I click the Close
button, the statement is always false whether I have made a change in the
subform or not.

Thanks!

Mark
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Mark" <mm*****@earthlink.net> wrote in message
news:Ue*****************@newsread3.news.atl.earthl ink.net...
Is this the way to determine if a subform is dirty?

If Me!SFrmEnterActivityList.Form.Dirty Then

I use this statement in the Unload event of a form. When I click the Close
button, the statement is always false whether I have made a change in the
subform or not.

Thanks!

Mark

Nov 12 '05 #2

P: n/a
If you are executing code on the form, chances are your focus has left the
subform.
Whenever your focus leaves the subform, the data in the subform is saved,
and its Dirty property becomes false.

HTH
- Turtle

"Mark" <mm*****@earthlink.net> wrote in message
news:Ue*****************@newsread3.news.atl.earthl ink.net...
Is this the way to determine if a subform is dirty?

If Me!SFrmEnterActivityList.Form.Dirty Then

I use this statement in the Unload event of a form. When I click the Close
button, the statement is always false whether I have made a change in the
subform or not.

Thanks!

Mark

Nov 12 '05 #3

P: n/a
Yes!! That's exactly what is happening. Thanks for pointing it out.

Mark
"MacDermott" <ma********@nospam.com> wrote in message
news:zh*****************@newsread3.news.atl.earthl ink.net...
If you are executing code on the form, chances are your focus has left the
subform.
Whenever your focus leaves the subform, the data in the subform is saved,
and its Dirty property becomes false.

HTH
- Turtle

"Mark" <mm*****@earthlink.net> wrote in message
news:Ue*****************@newsread3.news.atl.earthl ink.net...
Is this the way to determine if a subform is dirty?

If Me!SFrmEnterActivityList.Form.Dirty Then

I use this statement in the Unload event of a form. When I click the Close
button, the statement is always false whether I have made a change in the
subform or not.

Thanks!

Mark


Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.