Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Seminars > Calendar > Calendar
Back to Calendar Seminar Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Weekly Calendar
Erin Worthington 
    
2 years ago
Lesson 6 Minute 9:30... I am making my calendar a weekly one. the code in the open calendar button keeps taking me to the first week of the month no matter what date I input. I scoured google, your vids, and previous questions, the closest answer was to "adjust the code slightly" with no other guidance on how or what to type. I am at a loss. This is what I have:

Private Sub CalculateStartDate()
'find the first sunday
  While Weekday(StartDate) <> 1
  StartDate = StartDate - 1
  Wend
End Sub
Richard Rost  @Reply  
          
2 years ago
The code you have looks like it should work.

See also: First Day of Week
Adam Schwanz  @Reply  
            
2 years ago
What is StartDate? Is the value of that set with something that takes it to the first week of the month instead of the current date?

In my weekly calendar I use this.
    Dim X As Date
    X = Date()

    While Weekday(X) <> 1
        X = X - 1
    Wend
    Forms!MainMenuF!WeeklyDate= X
Richard Rost  @Reply  
          
2 years ago
If memory serves (and it's been a while since I recorded this) StartDate is a form field that defaults to the first day of the current month.
Erin Worthington OP  @Reply  
    
2 years ago
Start date default is todays date.
=Date()
Sami Shamma  @Reply  
             
2 years ago
I can't seem to find the DB of the Calendar. The ZIP file has a very small DB.
Erin Worthington OP  @Reply  
    
2 years ago
I am very confused. I don't even know what DIM is yet. I know just enough to be dangerous. I will go back to the beginner and subsequent courses to find enlightenment. Thanks for taking the time to help me guys.
Sami Shamma  @Reply  
             
2 years ago
Watch this Video

Intro to VBA

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Calendar Seminar Lessons.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 1/15/2026 9:26:21 AM. PLT: 1s