473,396 Members | 1,766 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,396 software developers and data experts.

MS Access Calendar Query Source add filter

RockKandee
89 64KB
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 1567
ADezii
8,834 Expert 8TB
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 PopulateCalendar().
Dec 13 '13 #2
RockKandee
89 64KB
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 Expert 8TB
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
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...
0
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
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...
4
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
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...
10
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...
10
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...
2
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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,...

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.