borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (pop-up blocking)Next Topic (SQL SERVER 2000 with Conditional select Statement) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Prevent System Date BackWard
Poster Message
vbLearner
Level: Graduate

Registered: 21-04-2006
Posts: 13

icon Prevent System Date BackWard

Hello Guys,

How to create a program to monitor the date and time.. I dont want to allow the user to adjust the time backward.. because the data entry for the day is critical. If the program continue to operate  with the date is not the real date the database record will be affected

Hope you understand what i meant to...

I need your help again guys... please help me. if you know please post here..

thanks in advance


vblearner

11-08-2007 at 07:34 AM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: Prevent System Date BackWard

Well, you can't actually prevent it.  Depending on the OS version, windows automatically synchronizes the time with timeservers.  It allows this since a computer's time does fluctuate (it's not 100% accurate on all pcs, close, but it does get off).  Not to mention when you have to deal with daylight savings times.

And if you think about it: how do you know what time it really is?
Unless you have a program run 100% of the time, keep track of time itself, comparing that time to the computers time, you wouldn't know if they changed it or not.  But if they did, there may of been a reason.

If the time is that important to you for the database, don't rely on the PC's time entirely - require an internet connection and query a timeserver for the time.  Then just use the timeserver's time for the database (well, with the time offset for the timezone).

[Edited by JLRodgers on 12-08-2007 at 12:05 PM GMT]

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

12-08-2007 at 06:03 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
vbLearner
Level: Graduate

Registered: 21-04-2006
Posts: 13
icon Re: Prevent System Date BackWard


well thank you very much to your very very nice suggestion to my problem..  I'm using a computer without internet connection, it is windows XP prof Platform.

If i make a program that monitor a time 100 percent time to time.. i need to run the program on startup but what if they accidentally close it.. so i need to create a program again to detect if that application is still running and reload it again if it was terminated ..

Other idea: since windows xp prevent changing the System date on Limited account it solves the system date changeable.

But the program i made in vb6 after installing and i run it in limited user account to prevent them changing system date time,  error display that seems the program won't run... i forgot the error msg it seems just {cls000000} .. but then i go to administrator account  and run it again nothings going wrong and it works..

I don't know if the problem is in application I'd made or might the program could run only in administrator account.. but some application like office run also in limited user account..right?

I don't know......!!!!!



very confusing                

I need help.. i will be looking forward to this thread...

thank you very much and thanks again in advance...

vblearner

13-08-2007 at 02:32 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Prevent System Date BackWard
Previous Topic (pop-up blocking)Next Topic (SQL SERVER 2000 with Conditional select Statement) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder