473,549 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Access Calendar - OVERVIEW

ADezii
8,834 Recognized Expert Expert
MS Access Calendar – OVERVIEW

Many times over the years, a similar type question has been asked of us here at Bytes, namely: How Can I Incorporate Calendar Like Functionality Solely Within The Context Of My Access Application? The individuals posting these questions are not referring to the varied ActiveX Calendar Controls that essentially present a Popup Dialog that enables you to select a Date then populate a Form Field with that Date, but something a little more interactive such as the Outlook Calendar where you can double click on a Date, then add some data relative to that Date for display and later retrieval.

This all started back on January 19, 2008 when a regular Member asked if there was an Outlook like Calendar option that can be used for data entry. Now, 340 Posts later, Bytes finds itself in a situation, where it must Close the Thread due primarily for efficiency reasons. Needless to say, this Topic has generated an unprecedented amount of interest which we will now attempt to keep alive via this Insight as well as a Link to the Original Thread.

Before I go any further, I would like to state that the basic Calendar functionality that I previously described does exist here at Bytes in what we affectionately call the MS Access Calendar. After proceeding with some background information on its inception, I will then go on to describe its implementation, as well as providing Attachments for the two Versions available, namely the Wide and Standard Calendars.

The Original Calendar was created many years ago by a friend and co-worker of mine, Carl Broll. We were both Fire Fighters at the time, and the Department needed a Scheduler complete with Date listings, a display of working platoons for each day of the week, and a mechanism to input basic information referring to scheduled appointments. This was how the Original Calendar came to be.

I joined TheScripts (now Bytes) back in April of 2006, and soon realized that this need for an Access based Calendar can be mostly fulfilled by an adaption of the Original Calendar. With Carl’s explicit permission, I soon made some modifications and enhancements to it, basically tailoring it to each requestor’s specific needs. It now exists in two Versions: Wide (for Screen Resolutions >= 1024 X 768) and Standard (all other Resolutions).

The primary function of the MS Access Calendar is to provide a graphical representation of a limited amount of Data generated from a DAO Recordset. The source of this Recordset can be a Query, Table, or SQL Statement. This Recordset can contain either a single Date Field or a Range of Date Fields (From…To) and populates the Calendar Grid accordingly. It can also be enhanced so that you can double-click on a specific Date Block, and Open a Form in which you can now Add, Modify, or Delete Records in the underlying Data Source. At this point, the Calendar will need to be in sync with the Data Source and this can easily be accomplished via a Sync Command Button.

I will not get into any of the technical aspects of the MS Access Calendar at this point, but reserve that discussion for the IMPLEMENTATION Section to follow.

If you have any questions about the original application in the MS Access Calendar thread please start a new thread in MS Access by clicking on the Start a Discussion button and link to the original thread in your question.
May 17 '11 #1
10 8338
MMcCarthy
14,534 Recognized Expert Moderator MVP
A very nice introduction ADezii.

I worked on something a couple of years ago which had to show a one year / 365 day view. I remember how complex it was and I only had to deal with a single piece of data, nothing like a recordset.

I'm looking forward to seeing the implementation of this laid out in an insight.

Mary
May 17 '11 #2
NeoPa
32,564 Recognized Expert Moderator MVP
Me too :-D (even as far as chatting with Mary about the project she's talking about).

Here's a thought I just had, and it may be somewhat more than trivial I know. What about producing a calendar facility (or possibly Diary as the term Calendar doesn't really do it justice) which determines dynamically whether or not it can be a Wide version or Standard. Just a thought.
May 18 '11 #3
ADezii
8,834 Recognized Expert Expert
@NeoPa - Not crystal clear on what you are saying, NeoPa. Are you suggesting that I dynamically determine the User's Screen Resolution, then Load the appropriate Version of the Calendar Form? It could be done, but it would add to the complexity of the Code, make the OVERVIEW already obsolete, and add another Control laden Form. Think it is worth the trade-off, assuming this was the original suggestion?
May 18 '11 #4
NeoPa
32,564 Recognized Expert Moderator MVP
That's certainly what I was suggesting you consider ADezii. Please bear in mind that I am not in a position to know all about your considerations as I am not the architect of the project. My understanding of it is considerably more limited than yours.

That said, I would be interested to see such a project, and probably even interested enough to work with you on it, though my time currently is more limited than yours I suspect. Maybe you will decide it is not practical enough for now, but might be considered again sometime in the future. I can't say, as it is for you to consider.
May 18 '11 #5
ADezii
8,834 Recognized Expert Expert
@NeoPa - Definitely worth considering, I'll have to sleep on it for awhile. Thanks for the insight.
May 18 '11 #6
ADezii
8,834 Recognized Expert Expert
@NeoPa - Just wanted to let you know that I carefully considered both your suggestions concerning the Vertical Scroll Bars and Resolution Determination within the MS Access Calendar. Both have now been integrated within the Calendar, and there is no longer any need for a 'Standard' and 'Wide' Version. What I have done is:
  1. At an entry point into the Database, in my case the AutoExec Macro, call a Public Function (fMain()). This Function will determine the User's Screen Resolution, and if it is >=1024 AND >=768, then The Wide Version (Form) of the Calendar will be Opened, and if not the Standard Version (Form) will. A Public Variable (gstrCalForm) will also be Set indicating which Form is Loaded, either frmStandardCale ndar or frmWide Calendar. The Application needs to know which Form is being utilized at any given time.
  2. After the Calendar itself is populated, a Sub-Routine (SetScrollBars( )) is executed only if the 'Wide' Version is being utilized. This Routine Loops thru every Date Block (Text Boxes) on the Current Form, then counts the Number of CrLfs in its Value. If this Value is greater than a pre-determined Number, 4 in this case, there is a need for Vertical Scroll Bars, if not, not are required.
  3. It all seems to work quite well, with a minimal amount of overhead. If you would like to see the specific Code, I would be more than happy to supply it. Once I tweak it a little, I would like to send you and Mary the DB in its entirety, and perhaps you can come up with a couple of other valued suggestions. Thanks for the input, it is appreciated.
  4. Once this gets all ironed out, I'll start working on the IMPLEMENTATION aspect. For now, I cannot go in and either Edit or Add information to what I previously posted, and made Mary aware of this situation.
May 20 '11 #7
NeoPa
32,564 Recognized Expert Moderator MVP
Stunning job!

I'd be very interested in seeing what you've got my friend. Whenever you're ready is good.
May 20 '11 #8
labessade
2 New Member
Hi, I have downloaded the calendar app's to have a look at. Are they the latest though as this thread implies there is just the one app now which works out screen res rather than the two (wide & std). Also are you in the US? I'm in the UK and when I enter todays date it appears as a Friday not a Tuesday in the graphical calendar and just wondered if that is why. I would love to use this to track holidays in our organisation although I'd have to amend to include start and end dates. Thanks...
May 14 '13 #9
ADezii
8,834 Recognized Expert Expert
@labessade
I have attached one of the later Versions of the Calendar without the Resolution determination Code that seems to work quite well. Download it and see if it suits your needs.
Attached Files
File Type: zip Calendar.zip (56.8 KB, 567 views)
May 14 '13 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
8460
by: nh_capricorn | last post by:
Hi, I am fairly new to .NET (coming from a Java background) and I am trying to port an application that I originally wrote in Java, to .NET / C#. My problem is that I cannot find a C# analog for the javax.mail library. My original program used this to access the calendar on Exchange, via IMAP and retrieve appointments. I have no idea how...
8
2447
by: Shyguy | last post by:
Is it possible to create a calendar that shows previous input data and also allows for input of new data?
3
8218
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...
7
8085
by: Mike Charney | last post by:
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...
1
9660
by: afr0ninja | last post by:
Hello all, and thank you in advance for your assistance. I'm pretty new to access and I'm trying to teach myself some VBA by using various bits of code I find here and there mixed with my own. I've seen mentions of this issue in other forums, but haven't found an ansewer (at least one I understand lol) in other postings. I have a text box...
1
4688
by: Robert Waggoner | last post by:
My Access 97 database is on a public network so it can be accessed by a dozen users. On my computer the Active X calendar shows the GridFont as 8 pt. On some user's computers the gridfont size is 1.5 and cannot be read by the human eye. HELP! Why does it read perfectly on my computer but not on user's computers? I can go into a user's computer...
16
3732
rcollins
by: rcollins | last post by:
I have a calendar on my form that inputs the date selected. Right now, the date isn't updated until I click on the date box after selecting the date. Is there a way for me to update as I click on the date>
76
24102
by: apartain | last post by:
Has anyone ever created a shared calendar within Access? It would be similar to MS Outlook, but clearly not as in-depth. I would need to use it for employees to enter their availability so managers can assign projects accordingly. As well, it would be nice if it actually LOOKED like a calendar. Do you recommend the ActiveX Calendar Control?
340
108481
by: MyWaterloo | last post by:
This thread has been closed as it has gotten just too big. If you have any questions about the application discussed in this thread please start a new thread in MS Access by clicking on the Start a Discussion button and link to the this thread in your question. Just wondering...Am I the only one in the access universe that would like an...
1
22803
by: Dalia Allencher | last post by:
I have to plan the work schedule. For example: The process has several steps. Steps Step 1 Step 2 Step 3 Due dates 2/5/2011 2/10/2011 2/15/2011 I want to create a calendar like Outlook where I need the steps to display in respective dates, which I can take a print out and stick to my wall. I have some knowledge of MS...
0
7527
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...
0
7459
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...
0
7726
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. ...
0
7967
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...
0
6052
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...
1
5377
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...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
772
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...

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.