S skwilliams Registered User. Local time Today, 17:40 Joined Jan 18, 2002 Messages 516 Oct 16, 2009 #1 I have a button on a form that I would like to only be visible on Thursdays. Is this possible?
boblarson Smeghead Local time Today, 14:40 Joined Jan 12, 2001 Messages 32,059 Oct 16, 2009 #2 Yes, in the form's open or load event you can use: Code: Me.YourControlName.Visible = (Format(Date(), "mmmm") = "Thursday")
Yes, in the form's open or load event you can use: Code: Me.YourControlName.Visible = (Format(Date(), "mmmm") = "Thursday")
D datAdrenaline AWF VIP Local time Today, 16:40 Joined Jun 23, 2008 Messages 697 Oct 16, 2009 #3 Or ... a regionally independant method ... Me.YourControlName.Visible = (WeekDay(VBA.Date,1) = 5) ... if you prefer to use constants ... Me.YourControlName.Visible = (WeekDay(VBA.Date,vbSunday) = vbThursday)
Or ... a regionally independant method ... Me.YourControlName.Visible = (WeekDay(VBA.Date,1) = 5) ... if you prefer to use constants ... Me.YourControlName.Visible = (WeekDay(VBA.Date,vbSunday) = vbThursday)
S skwilliams Registered User. Local time Today, 17:40 Joined Jan 18, 2002 Messages 516 Oct 16, 2009 #4 That worked great! Thanks.