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

Home Posts Topics Members FAQ

Calendar Control in Access

I am trying to use the calendar control in Access (Calendar Control 11.0)

I have it working but for only one form. I do not know VB/VBA very well, but
how can I open the calendar control, which is on a form called frmcalendar,
so that all I have to do is click or double click a date and the date is
transferred back to the calling form?

I have looked at several outside calendars but I don't want to use them. I
would rather stick with MS-Access.

Mike
Apr 10 '06 #1
7 8092
This one is a simple little Access form:
http://allenbrowne.com/ser-51.html

After copying it into your database, you can use it with any text box on any
form.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Mike Charney" <no*****@everyt hing.net> wrote in message
news:3Z******** *******@newssvr 12.news.prodigy .com...
I am trying to use the calendar control in Access (Calendar Control 11.0)

I have it working but for only one form. I do not know VB/VBA very well,
but how can I open the calendar control, which is on a form called
frmcalendar, so that all I have to do is click or double click a date and
the date is transferred back to the calling form?

I have looked at several outside calendars but I don't want to use them. I
would rather stick with MS-Access.

Apr 10 '06 #2
Use the following code in the calling form:
DoCmd.OpenForm "FrmCalendar",, ,,,acDialog
If Forms!FrmCalend ar.IsOpen Then
Me!NameOfDateTe xtbox = Forms!FrmCalend ar!NameOfCalend arControl.Value
DoCmd.Close "FrmCalenda r"
End If

Put the following code in the AfterUpdate event of the calendar control:
Me.Visible = False

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1175 users have come to me from the newsgroups requesting help
re******@pcdata sheet.com
"Mike Charney" <no*****@everyt hing.net> wrote in message
news:3Z******** *******@newssvr 12.news.prodigy .com...
I am trying to use the calendar control in Access (Calendar Control 11.0)

I have it working but for only one form. I do not know VB/VBA very well,
but how can I open the calendar control, which is on a form called
frmcalendar, so that all I have to do is click or double click a date and
the date is transferred back to the calling form?

I have looked at several outside calendars but I don't want to use them. I
would rather stick with MS-Access.

Mike

Apr 10 '06 #3

"PC D" <fa***@email.co m> schreef in bericht news:XG******** *********@newsr ead2.news.atl.e arthlink.net...
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications 'Resource ????
Over 1175 users have come to me from the newsgroups requesting help '1175 users ????
re******@pcdata sheet.com



--
To Steve:
Why don't you just get lost? No-one wants your advertising/job hunting here!
Over 625!! users from the newsgroups have visited the website to read what kind of a 'resource' you are... (rapidly increasing..)

To the original poster:
Most people here have a common belief that the newsgroups are for *free exchange of information*.
But Steve is a notorious job hunter in these groups, always trying to sell his services.

Before you intend to do business with him look at:
http://home.tiscali.nl/arracom/whoissteve.html

Arno R
Apr 10 '06 #4
"PC D" <fa***@email.co m> wrote in message
news:XG******** *********@newsr ead2.news.atl.e arthlink.net...
If Forms!FrmCalend ar.IsOpen Then


How does that work then?

Keith.
Apr 11 '06 #5
Why don't you ask your pal Arno R? He has yet to make a contribution to this
newsgroup!!!
"Keith Wilby" <he**@there.com > wrote in message
news:44******** @glkas0286.gree nlnk.net...
"PC D" <fa***@email.co m> wrote in message
news:XG******** *********@newsr ead2.news.atl.e arthlink.net...
If Forms!FrmCalend ar.IsOpen Then


How does that work then?

Keith.

Apr 11 '06 #6
I will tell that your 'solution' indeed doesn't work if anyone asks me...
You gave a totally wrong answer again ...

Arno R

"PC D" <fa***@email.co m> schreef in bericht news:Mi******** ********@newsre ad2.news.atl.ea rthlink.net...
Why don't you ask your pal Arno R? He has yet to make a contribution to this
newsgroup!!!


"Keith Wilby" <he**@there.com > wrote in message
news:44******** @glkas0286.gree nlnk.net...
"PC D" <fa***@email.co m> wrote in message
news:XG******** *********@newsr ead2.news.atl.e arthlink.net...
If Forms!FrmCalend ar.IsOpen Then


How does that work then?

Keith.


Apr 11 '06 #7
"PC D" <fa***@email.co m> wrote in message
news:Mi******** ********@newsre ad2.news.atl.ea rthlink.net...
Why don't you ask your pal Arno R? He has yet to make a contribution to
this newsgroup!!!
"Keith Wilby" <he**@there.com > wrote in message
news:44******** @glkas0286.gree nlnk.net...
"PC D" <fa***@email.co m> wrote in message
news:XG******** *********@newsr ead2.news.atl.e arthlink.net...
If Forms!FrmCalend ar.IsOpen Then


How does that work then?

Keith.


Are you familiar with the phrase 'rhetorical question'? From the help:

IsOpen

True if the specified HTML project item is open in the Microsoft Script
Editor. Read-only Boolean.

Example
This example determines whether the specified HTML project item is open. and
if it is, the example then loads script from the specified file.

If ActiveWorkbook. HTMLProject.HTM LProjectItems _
.Item(1).IsOpen Then
ActiveWorkbook. HTMLProject.HTM LProjectItems _
.Item(1).LoadFr omFile ("C:\MyScript.t xt")
Else
MsgBox "The HTMLProjectItem is not open."
End If
Apr 12 '06 #8

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

Similar topics

5
3421
by: Larry R Harrison Jr | last post by:
I use the Lebans calendar control and love it; the only thing is that it commonly starts out at the year 1899 rather than the current year. Is there a way to specifically tell it to start at the current date instead? Note: it does this fine if I'm using it in the context of a form's text box, but I'm trying to use it on a module which is called, whereby the date chosen is the date plugged into a variable. Everytime after I reset the...
1
2057
by: Marco Simone | last post by:
Hi, If someone can answer how to add calendar control on form, where you can choose date. I think there is Calendar control in ActiveX add in, but I don't know how to implement it. Thanks for your help, Marco
3
8226
by: Matthew | last post by:
I currently have a form in MS Access that has certain combo boxes which specify criteria in order to run a query based on that criteria. I want to add to this, a calendar from which a user will be able to click on a date, where the chosen date will then be used as the criteria for the control source of the calendar. What do I need to do to make the calendar active?? I can physically get it on my form, and specify the criteria in my...
5
4594
by: Miguel Dias Moura | last post by:
Hello, i am trying to create a .css file with several styles and apply them to the calendar control so i can change the look of: 1. Text Type and Format (Bold, Underline, etc) 2. Background Color 3. Foreground Color 4. Border Tickness 5. Border Color
3
2761
by: Hutty | last post by:
I'm trying create a calendar control that updates an access database with events. I have some code I managed to piece together. First error I'm running into is the Mycommand.ExecuteNonQuery(). I get an error on this line as it looks for the query. Here's the first piece of the code where I'm able to get display calendar and the input boxes. Just trying to write back to database. Thanks in advance. Public Sub Page_Load(ByVal Sender...
5
10790
by: Ben | last post by:
I have a javascript code in the ASP.NET page. I want to access Calendar control that is inside ASP page and is "run at server". I try to use following code but it doesn't work. <script language="javascript"> function valSubmit() { document.getElementById("Calendar1").style.visibility =
4
2961
by: ShyGuy | last post by:
A while back I had found a link to a popup calendar that had a small button that was placed to the right of any text box. By clicking on the icon and selecting a date the text box was updated with that date. You were able to use the icon (button) on multiple text boxes on the form. I have lost the link and can't find any reference to it on my machine. Could someone lead me in the right direction? Thank you.
3
2723
by: thorpk | last post by:
I posted this problem earlier in the month and some one decided it was better to change the subject and ask a completely different question. I am therefore reposting. I am hoping some one can assist with this. Thanks in advance. I have an access database that i have added a pop up calendar to, the Table information for the Date Reported field is Date/Time format short date, input mask is 00/00/0000.
2
3919
by: bubbles | last post by:
Using Access 2002 and VBA. 1) How can I "attach" a calendar control to a combo box? (or is there a correct way to show a calendar control?) 2) Once the date is clicked, how can I get the value of the date? Thanks, Bubbles
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
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8512
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
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
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.