473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
2 1776
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: horos | last post by:
hey all, Ok, a related question to my previous one on data dumpers for postscript. In the process of putting a form together, I'm using a lot of placeholder variables that I really don't care...
3
by: William Wisnieski | last post by:
Hello Again, I'm really stuck on this one.....so I'm going to try a different approach to this problem. I have a query by form that returns a record set in a datasheet. The user double...
3
by: Jeff | last post by:
Hi I have a report with a graph on it and want to change the minimum and maximum values for the value axis when it is previewed. This can't be done by adding code in the Open event as once the...
13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
7
by: Nicolae Fieraru | last post by:
Hi All, I am trying to change the rowsource of a combobox when I click on it. I played with many events, associated with the form and the combobox, but still haven't figured out what is the way...
3
by: Mike Collins | last post by:
I'm not feeling too smart right now, but I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. Can someone show...
3
by: vivela | last post by:
hi, I hope you could help me out on this one,cause I have been trying for 4 days to solve it,but couldn't quite get it right: I have an ASP textbox that should change the value in a dropdownlist....
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
6
by: tshad | last post by:
I was looking at a page that showed how to set up a custom event and it seems to work ok. But I am not sure how I would use it. How would I subscribe to it. There is actual action (such as...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.