Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Tips & Tricks

New Tips Added Weekly!
Click here to get on our Mailing List

   
 
MS Access

Calendar Seminar Addendum - Highlight Current Day

Highlight the current day on the main Form

In this tutorial I will explain how to highlight the current day of the current month.

The original code for changing none current month days is in the Form_DatePickerF so this would be a good place to start.

We need to compare the Current Day, Month and Year against the Day, Month and Year of the Date on the Form.

You are welcome to change the colour for vbRed too

Form_DatePickerF

	Public Sub OpenCalendar()
		
		...
		
		'Dim today As Date
		'today = Date
		Dim todayDay As Integer
		todayDay = Day(Date)
		Dim todayMonth As Integer
		todayMonth = Month(Date)
       Dim todayYear As Integer
       todayYear = Year(Date)
		
		...
		
		For X = 1 To 42
		
		...
		
			If (X = todayDay And _
				Month(Forms!MonthlyCalendarF(S1)) = todayMonth And _
					Year(Forms!MonthlyCalendarF(S1)) = todayYear) Then
				Forms!MonthlyCalendarF(S2).BackColor = vbRed
			Else
				Forms!MonthlyCalendarF(S2).BackColor = &HFFFFFF
			End If
		
		...
		
		Next X
		
	End Sub
	

MonthlyCalendarF - Highlight Current Day


Have you watched the Addendums?


 

Alex Hedley (Avatar) By: Alex Hedley


Click here to sign up for more FREE tips

 

 

 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/28/2024 8:21:02 AM. PLT: 0s