MS Access Calendar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MyWaterloo
    New Member
    • Dec 2007
    • 135

    #16
    Originally posted by ADezii
    I made some modifications to the code to make it more 'usable' and 'generic'. Try it out and let me know what you think:
    Thank You.
    Sorry, I have been away from the Access world for some time. Yes, the calendar modifications were very helpful. =)

    Comment

    • ADezii
      Recognized Expert Expert
      • Apr 2006
      • 8834

      #17
      Here is the latest, TOP SECRET, super dooper, new and improved, very simple, Access Calendar. Just dbl-click on any given Day to enter Event(s) for that Day. Have fun!

      Comment

      • pdebaets
        New Member
        • Mar 2008
        • 16

        #18
        Very nice calendar, ADezii. Thanks!

        Comment

        • lostdog
          New Member
          • Dec 2006
          • 15

          #19
          Thank Adezii,

          I've been looking for something like this for quite a while now, I had been making do with a normal datasheet for this function.

          The blank blocks at the start of the month seem to run slighty off, today is highlighted as a Sunday. Is there a way I can ammend the code behind to coreect this?

          Thanks again!

          Comment

          • ADezii
            Recognized Expert Expert
            • Apr 2006
            • 8834

            #20
            Originally posted by lostdog
            Thank Adezii,

            I've been looking for something like this for quite a while now, I had been making do with a normal datasheet for this function.

            The blank blocks at the start of the month seem to run slighty off, today is highlighted as a Sunday. Is there a way I can ammend the code behind to coreect this?

            Thanks again!
            This anomaly seems to be related to specific Time Zones, especially European, and has to do with the formatting of the 1st Day of the Month. In the PopulateCalenda r() Sub-Routine in the frmCalendar's Code Module, make sure the following line reads as follows:
            [CODE=vb]
            'Correct syntax for your Time Zone
            strFirstOfMonth = Str(intMonth) & "/1/" & Str(intYear)

            'Incorrect syntax for your Time Zone (necessary for some Time Zones)
            strFirstOfMonth = Str(intYear) & "/1/" & Str(intMonth)[/CODE]

            Comment

            • lostdog
              New Member
              • Dec 2006
              • 15

              #21
              Originally posted by ADezii
              This anomaly seems to be related to specific Time Zones, especially European, and has to do with the formatting of the 1st Day of the Month. In the PopulateCalenda r() Sub-Routine in the frmCalendar's Code Module, make sure the following line reads as follows:
              [CODE=vb]
              'Correct syntax for your Time Zone
              strFirstOfMonth = Str(intMonth) & "/1/" & Str(intYear)

              'Incorrect syntax for your Time Zone (necessary for some Time Zones)
              strFirstOfMonth = Str(intYear) & "/1/" & Str(intMonth)[/CODE]
              Thanks for the quick reply!

              It makes sense now after reading your post, the code I replaced it with was

              Code:
               strFirstOfMonth = "1/" & Str(intMonth) & Str(intYear)
              Which sorted it out for the UK day/month/year date format.

              Thanks again!

              Comment

              • blad3runn69
                New Member
                • Jul 2007
                • 59

                #22
                wow ADezii way cool, kudos 2 u and thank you. You are a gentleman and a scholar!

                Comment

                • ADezii
                  Recognized Expert Expert
                  • Apr 2006
                  • 8834

                  #23
                  Originally posted by blad3runn69
                  wow ADezii way cool, kudos 2 u and thank you. You are a gentleman and a scholar!
                  Thank you for the compliment, but as far as the 'gentleman' and 'scholar' part, you seems to be wrong on both parts! (LOL).

                  Comment

                  • truthlover
                    New Member
                    • Dec 2007
                    • 107

                    #24
                    Well you're definitely a hero to me (and I'm sure to many others after 32+ years on the fire department.)

                    Anyway, this calendar is exactly what I've been looking for. I tried to modify it by replacing the tblEvent reference with the table I wanted the values to be pulled from, but I got an error message saying "Item not found in this collection" and a blank calendar.

                    Is there a way to get the dates in my current database to tie in to this calendar?

                    Thanks!

                    Originally posted by ADezii
                    Thank you for the compliment, but as far as the 'gentleman' and 'scholar' part, you seems to be wrong on both parts! (LOL).

                    Comment

                    • ADezii
                      Recognized Expert Expert
                      • Apr 2006
                      • 8834

                      #25
                      Originally posted by truthlover
                      Well you're definitely a hero to me (and I'm sure to many others after 32+ years on the fire department.)

                      Anyway, this calendar is exactly what I've been looking for. I tried to modify it by replacing the tblEvent reference with the table I wanted the values to be pulled from, but I got an error message saying "Item not found in this collection" and a blank calendar.

                      Is there a way to get the dates in my current database to tie in to this calendar?

                      Thanks!
                      What exactly do you mean by 'tying' the Dates in your DB to this Calendar?

                      Comment

                      • truthlover
                        New Member
                        • Dec 2007
                        • 107

                        #26
                        I have a query qry_CrewList that generates a schedule of who is working on which project on any given day. The managers want to be able to look at a calendar and see in one view where everyone is scheduled.

                        Your calendar is perfect for that. I just need to know how to get the calendar to read the dates from the query.

                        Thanks!

                        Originally posted by ADezii
                        What exactly do you mean by 'tying' the Dates in your DB to this Calendar?

                        Comment

                        • ADezii
                          Recognized Expert Expert
                          • Apr 2006
                          • 8834

                          #27
                          Originally posted by truthlover
                          I have a query qry_CrewList that generates a schedule of who is working on which project on any given day. The managers want to be able to look at a calendar and see in one view where everyone is scheduled.

                          Your calendar is perfect for that. I just need to know how to get the calendar to read the dates from the query.

                          Thanks!
                          This may be very difficult, since the Calendar Application was never meant to 'Date Aware' in the sense that in can be Bound to a Date Field in a Data Source. I may be able to integrate it into your Database, but I will need qry_CrewList and its underlying Table(s), with some valid data. I will also need to know exactly what you want displayed in the Calendar for each Date since space is definately at a premium (Name and ProjectID)? Let me know if this is acceptable to you, and I'll give you my E-Mail address in a Private Message, where you can send the info as an Attachment.

                          Comment

                          • truthlover
                            New Member
                            • Dec 2007
                            • 107

                            #28
                            Yes, that would be great. And Name and ProjectID (or more likely SurveyWorkOrder ID) is all that's needed. I'll get the file ready for you.

                            Thanks!

                            Originally posted by ADezii
                            This may be very difficult, since the Calendar Application was never meant to 'Date Aware' in the sense that in can be Bound to a Date Field in a Data Source. I may be able to integrate it into your Database, but I will need qry_CrewList and its underlying Table(s), with some valid data. I will also need to know exactly what you want displayed in the Calendar for each Date since space is definately at a premium (Name and ProjectID)? Let me know if this is acceptable to you, and I'll give you my E-Mail address in a Private Message, where you can send the info as an Attachment.

                            Comment

                            • truthlover
                              New Member
                              • Dec 2007
                              • 107

                              #29
                              I dont know if this helps any, but I dont need the ability to add an appointment from the calendar and I dont want the buttons to clear the appointments to be available at all.

                              I just need the calendar to display the schedules generated by the existing forms (which populates the query).

                              Thanks!

                              Originally posted by truthlover
                              Yes, that would be great. And Name and ProjectID (or more likely SurveyWorkOrder ID) is all that's needed. I'll get the file ready for you.

                              Thanks!

                              Comment

                              • ADezii
                                Recognized Expert Expert
                                • Apr 2006
                                • 8834

                                #30
                                Originally posted by truthlover
                                Yes, that would be great. And Name and ProjectID (or more likely SurveyWorkOrder ID) is all that's needed. I'll get the file ready for you.

                                Thanks!
                                I was able to create a certain effect utilizing [ProjectID], [ProjectSurveyor], and [DateCreated], with test data. I assumed that Name referred to the Project Surveyor, if not Who? Look at the Attachment.

                                Comment

                                Working...