473,569 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Access Calendar Query Source add filter

RockKandee
89 New Member
I am using the MS Access Calendar in Access 2013, Windows 8.

http://bytes.com/topic/access/answer...alendarhttp://

Currently I am using 4 calendar forms with the data source supplied by 4 different tables.

Table 1 = Holidays
I use the form to print a blank calendar (blank = does not include scheduling info). Holidays are treated as part of a blank calendar like you would buy for your wall at home.

Table 2 = Events
No printing needed but I will be attaching a form to the blocks in this calendar.

Table 3 = Courses (Education Classes)
No printing needed but I will be attaching a form to the blocks in this calendar.

The forms are VERY different for Events and Courses. I am unaware of a way to attach 2 forms to one block so I used 2 calendar forms. Additionally, I am not sure I would want to. It might make data entry more confusing.

Table 4 = Tables 1, 2, and 3 combined for a complete calendar view. Mostly used for printing.

I did it this way so I could use it now and I am working on the elimination of multiple tables. I originally could not get the calendar form to accept a Query as its source. This has magically ceased being an issue (I think). The end result will be a Query holding the info needed to feed any form with a field (Calendar Category) specifying Event, Course or Holiday.

I am hoping I can add a filter to the calendar form to only display information in the Query where, for example, Calendar Category = Event.

Or possibly use one calendar and have a control to choose between multiple views.

My question is: How can I filter the displayed information on the calendar form?

Thanks for Looking...Have a Thrilling Thursday!
Dec 12 '13 #1
3 1572
ADezii
8,834 Recognized Expert Expert
The Access Calendar is not your 'Traditional' Form in that it is 'Bound' to a Data Source and has Controls 'Bound' to Control Sources. The only mechanism I can see for this scenario is to create a Modular Level Variable to hold your SQL Statement that will be the driving force for the Calendar. Depending on selecting a certain Criteria, say an Event Type from a Drop Down Menu, this Variable would be assigned a String representing your SQL. The Calendar Form would then be opened, creating the Recordset derived from the dynamically created SQL Statement in PopulateCalenda r().
Dec 13 '13 #2
RockKandee
89 New Member
This calendar is my first and only exposure to using code.

I have done simple things like changing the source table, changing all the fore and background colors, stopping blinking labels, and making the week start on Monday's.

While this seems like the answer I was looking for based on my limited understanding of what you explained, this is over my head.

I will file this answer and come back to it when I know how to attempt it.

Thank you very much.
Dec 13 '13 #3
ADezii
8,834 Recognized Expert Expert
You are quite welcome. Perhaps a simple Demo will do the trick for you so you can see first hand what is happening. Let me see what I can come up with. You picked a daunting Task given the fact that you have limited exposure to writing Code.
Dec 13 '13 #4

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

Similar topics

0
3666
by: Monica Ferrero | last post by:
Hi! I'm not sure if this is the most adequate mySQL list for this post. If not, please indicat me which one I should use... I'm using Tomcat 4.1.24 with Apache 2 and MySQL 4.0.13. I have the mysql- connector-java-2.0.14-bin.jar in commons/lib. The application runs normally, and usually about once or twice a day I get this exception...
0
914
by: mr_doles | last post by:
Is there an event that is raised when a Binding Source filter has changed? If there is not one (I can't find it if there is) is there a way to determine if the Binding Source's filter has changed?
17
3788
by: Redbeard | last post by:
I am a newbie that is running Access 2003. I am trying to have a multi select listbox run a query that filter a form. I have tried several codes off the internet to try and just get the selected items in the list box to run a query, but with no luck. Does anyone out there have any code or suggestions that might help? Thanks
4
5612
by: Anil Gupte | last post by:
How does one go about writing a Directshow Source Filter? Learning resources and a sample application would be great. TIA, -- Anil Gupte www.keeninc.net www.icinema.com
340
108498
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...
10
8343
ADezii
by: ADezii | last post by:
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...
10
1682
RockKandee
by: RockKandee | last post by:
Hi, I am getting an error message when trying to print. I am using the MS access calendar found here: http://bytes.com/topic/access/answers/761255-ms-access-calendar I have Windows 8 and Office/Access 2013. I am using this in a desk top database and would like to transfer it to a web database in the future.
2
1481
by: PPelle | last post by:
I believe I read a post somewhere here on how to change the first day of the week to Monday in this MS Access Calendar, but is unable to search it up again. I've changed lines 5 and 8 in the quoted code (PopulateCalendar Sub-Routine, and by the way, line 4 seems to be missing a "/"?), and moved the day labels around. To my surprise, this is...
0
7703
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
7619
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
8138
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...
1
7681
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...
0
6290
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...
0
3662
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...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
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
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.