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

Acc2K3: Changing value on form from another form doesn't fire change event?

P: n/a
Hi All,

I have a calendar form that updates a date field on the form from which
it was called. I have code in the OnChange event of the date field that
I would like performed whenever the date value in the field is changed,
including when changed by selecting a new date from the calendar form.

The calendar form works as expected - when I select a date the date is
placed in the date field of the calling form, but the OnChange event
isn't fired by this change.

I'm wondering if this is expected behaviour? In essence, when I open
the calendar form I create a control object and set it to the relevant
date field on the calling form. Once a new date has been selected on
the calendar, the date value is assigned to the control object.

I'm curious to know if this might be because when you instantiate an
object as a reference to a control the object doesn't inherit or
pass-through to the control's event model? I may be clutching at straws
with that one, I admit.

Any help, as always, will be appreciated.

Much warmth,

planetthoughtful
---
"lost in thought"
http://www.planetthoughtful.org1

May 5 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
planetthoughtful wrote:
Hi All,

I have a calendar form that updates a date field on the form from which
it was called. I have code in the OnChange event of the date field that
I would like performed whenever the date value in the field is changed,
including when changed by selecting a new date from the calendar form.

The calendar form works as expected - when I select a date the date is
placed in the date field of the calling form, but the OnChange event
isn't fired by this change.

I'm wondering if this is expected behaviour? In essence, when I open
the calendar form I create a control object and set it to the relevant
date field on the calling form. Once a new date has been selected on
the calendar, the date value is assigned to the control object.

I'm curious to know if this might be because when you instantiate an
object as a reference to a control the object doesn't inherit or
pass-through to the control's event model? I may be clutching at straws
with that one, I admit.

Any help, as always, will be appreciated.

Much warmth,

planetthoughtful
---
"lost in thought"
http://www.planetthoughtful.org1

See if this helps.
http://groups.google.com/group/micro...db864d52fd95ec
May 5 '06 #2

P: n/a

salad wrote:
See if this helps.
http://groups.google.com/group/micro...db864d52fd95ec


Hi,

Thank you very much for the pointer!

Much warmth,

planetthoughtful
---
"lost in thought"
http://www.planetthoughtful.org1

May 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.