1 Replies - 5079 Views - Last Post: 08 August 2007 - 04:37 AM Rate Topic: -----

#1 Hirah  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-August 07

Set a specific date and Time to access database

Posted 08 August 2007 - 04:28 AM

Hi, im tyring to create a program which can enable users to add data to the database, but the database should not be accessable to anyone, not even the administrator, till a specific date and time.


i have disabled the Open Database button with the VB command :
Open.Enabled = False
but i cannot understand how to set a specific date and time for the button to get active.

Help!
Is This A Good Question/Topic? 0
  • +

Replies To: Set a specific date and Time to access database

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Set a specific date and Time to access database

Posted 08 August 2007 - 04:37 AM

I'm not exactly sure why you're wanting to do this, but the way to accomplish this is to add a Timer Control to your application, and on every tick check the current system date & time against the data & time you want the database to be active
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1