Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

Re: Visible = False based system date/time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 28 Jan 2005 15:29 GMT
Is it possible to set a control's visible property to False based on the
system date and time. Example: If system time >= #05/07/2005# Then
                                  Me!CheckBox.Visible = False
                            End If

Is this possible? I know that there is a MyDate function but I'n quite sure
of how it's used in this apppication.

Any suggestions will be appreciated.

Thanks,
visdev1 - 28 Jan 2005 15:59 GMT
The now() function returns the current system date and time.

 If Format(Now(), "Short Date") = "01/28/2005" Then
     Me!CheckBox.Visible = False
 End If

> Is it possible to set a control's visible property to False based on the
> system date and time. Example: If system time >= #05/07/2005# Then
[quoted text clipped - 7 lines]
>
> Thanks,
Dirk Goldgar - 28 Jan 2005 16:10 GMT
> Is it possible to set a control's visible property to False based on
> the system date and time. Example: If system time >= #05/07/2005# Then
[quoted text clipped - 7 lines]
>
> Thanks,

I don't know about any MyDate function, but there's a Date() function
right enough.  Your code could look like this:

   Me.CheckBox.Visible = (Date < #05/07/2005#)

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.