473,657 Members | 2,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ActiveX Calendar Control

I have a Calendar control (me.mycal) and a subform sbfAppointments , with
child/parent links from Parent/MyCal (ActiveX) to Child/ApptDate in the subform
sbfAppointments .

I would like to be able to click on a dat in the MyCal control and add it to
the subform sbfAppointments . Any help would be greatly appreciated.

Here is code:

Option Compare Database
Option Explicit

Private Sub Form_Load()
Me.MyCal = Date
End Sub

Private Sub MyCal_Updated(C ode As Integer)
Me.sbfAppointme nts.Requery
End Sub

Thank you,

Michael
Nov 12 '05 #1
1 2552
Hi Micheal,

It already does.

The Master / Child link (MyCal/ApptDate) "automagica lly" inserts the date
currently selected on the calendar into the ApptDate field in a new record
in the subform, which is likely by design -- in order to preserve the
integrity of the link.Changing the date on the calendar changes the date in
the subform, too.

I believe that the problem is that the "Private Sub MyCal_Updated(C ode As
Integer)" event is probably NOT firing and NOT requerying the subform. You
could set a breakpoint and check if you like, but that's why I use the
AfterUpdate event.

Yes, that's right, the AfterUpate event ... the code below (from my previous
reply) was NOT a typo on my part...
I realize that the ActiveX calendar doesn't show AfterUpdate in its own
property sheet, but if you look in the code window ... it's there AND it
works. My theory is that the ActiveX Calendar becomes a member of the Form's
Control Collection and therefore "inherits" some new events.
(I do a lot of things knowing THAT they work, and not really caring WHY they
work! <grin> )

Private Sub MyCal_AfterUpda te()
Me.sbfAppointme nts.Requery
End Sub

So anyway, change the event, then have another look... tell me if I'm wrong.
:)

Don

"Lumpierbritche s" <lu************ *@aol.com> wrote in message
news:20******** *************** ****@mb-m06.aol.com...
I have a Calendar control (me.mycal) and a subform sbfAppointments , with
child/parent links from Parent/MyCal (ActiveX) to Child/ApptDate in the subform sbfAppointments .

I would like to be able to click on a dat in the MyCal control and add it to the subform sbfAppointments . Any help would be greatly appreciated.

Here is code:

Option Compare Database
Option Explicit

Private Sub Form_Load()
Me.MyCal = Date
End Sub

Private Sub MyCal_Updated(C ode As Integer)
Me.sbfAppointme nts.Requery
End Sub

Thank you,

Michael

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
12740
by: Devonish | last post by:
I am developing a database using Windows 2000/Office 2000 which then runs on a client's system which uses Windows XP/Office XP In a form I have an ActiveX Calendar control which works well. When I run this program on the XP machine the Calendar control appears different. The FirstDay has changed from Monday to Tuesday and the DayLength has changed from a single letter e.g. M T W T F to 3 letter e.g. Mon Tue Wed
8
2377
by: PerryC | last post by:
I want to be able to accomplish this, please help: When click on the DOB field, a ActiveX Calender popup and the user choose a date, the value is automatically refreshed in the DOB field in the parent form. (I have many forms fields that need a calendar, but I don't want to create many calenders for each field) Is there a way to have just 1 calender, the value selected will be passed onto the parent form field (whatever field I click...
1
459
by: Lumpierbritches | last post by:
I have a Calendar control (me.mycal) and a subform sbfAppointments, with child/parent links from Parent/MyCal (ActiveX) to Child/ApptDate in the subform sbfAppointments. I would like to be able to click on a dat in the MyCal control and add it to the subform sbfAppointments. Any help would be greatly appreciated. Here is code: Option Compare Database
2
1965
by: Hinrich Wrage | last post by:
I would like to use some of the cool activeX controls but if I define a event procedure in the property editor the control never really calls these procedures. does anyone know why, I mean they cant be all junk ? henry
1
2511
by: MLH | last post by:
I have code below in the OnUpdated property setting for the ActiveX control. However, when I left click a new date on the calendar in an open form, the code does not run (IE, msgbox does not display). What am I doing wrong? Private Sub ActiveXCtl9_Updated(Code As Integer) MsgBox "After Updated event fired for ActiveXCtl9"
2
2019
by: Smriti Dev | last post by:
Hi There, I want to use the calendar control to pick a date field that is set as date/time in my database. Since space is limited in my form, I would like to make a small little icon that the user can click and the calendar pops open. How can this be done? Thanks for your help!
10
32205
by: Marcin Zmyslowski | last post by:
Hello all! I have a database created in MS Access 2003 which works fine in Win2000. This database shows me the following message in WinXP: "The expression On Load you entered as the event property setting produced the following error: A problem occured while Microsoft Access was communicating with the Ole server or ActiveX Control" I also get similiar errors On Load, On Click etc. with the same sentence
4
3239
by: dBNovice | last post by:
Hello all, i will definitely appreciate any help I can get on this.... I have a db that has 3 tables and 3 respective forms: task, subtask and element. Subtask is a subform of task. Element is a subform of subtask. Each form overlaps the other. You can call the other 2 forms from within the current form. The problem I am experiencing is that whenever I add the MS DTPicker on the Task form it shows up on the other two form. Also...
6
1825
MMcCarthy
by: MMcCarthy | last post by:
Hi everyone, I can't remember what causes this bug. I'm using an ActiveX calendar control on its own form in an application I designed. It works fine on my system but causes a problem on the clients system. Everytime the command button is clicked to load this form the system tries to reinstall office. I know I've come accross this before but I can't remember what causes it. Is this a missing office update? Mary
1
3058
by: kimiraikkonen | last post by:
Hi, I decided to try Mozilla's famous webbrowser control as an alternative to IE, but this control crashes when i navigate some websites like google.com and google.com's drop down links like "calendar" or others.. Error report includes nss3.dll and i use Mozilla ActiveX Control 1.7.12, if someone used that control and received error while browsing some sites, it would be nice to be verified. I tried in VB.NET and VC#.NET with same...
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8319
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6175
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.