Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,180 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,024 people online right now. Registration is fast and FREE... Join Now!




Set a specific date and Time to access database

 
Reply to this topicStart new topic

Set a specific date and Time to access database

Hirah
8 Aug, 2007 - 03:28 AM
Post #1

New D.I.C Head
*

Joined: 8 Aug, 2007
Posts: 1


My Contributions
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!
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Set A Specific Date And Time To Access Database
8 Aug, 2007 - 03:37 AM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,983



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
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
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 01:08AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month