jibble-depop
October 30th, 2000, 06:21 AM
I am writing a security module and have a function to extract an expiry date from the SQL Server database which is compared against the system date. If the system date is after the expiry date then the user is prompted to change password. Example code :
If Date > dtePasswordExpiry Then
frmChangePassword.Show
frmChangePassword.txtUsername.Text = strUsername
frmChangePassword.txtOldPassword.Text = strPassword
End If
There is also a function to do the same but for User account expiry dates.
My problem is that although the system date (using the Date function [the same happens if I use Now()]) is before the date given in the variable dtePasswordExpiry it continues to begin the process to change password.
Any thoughts on why this is. It happened for the first time today (it previously worked fine since its creation). We changed from Daylight Saving Time back to GMT over the weekend, would this have any effect? Clutching at straws here!
Thanks for your help,
Colin
If Date > dtePasswordExpiry Then
frmChangePassword.Show
frmChangePassword.txtUsername.Text = strUsername
frmChangePassword.txtOldPassword.Text = strPassword
End If
There is also a function to do the same but for User account expiry dates.
My problem is that although the system date (using the Date function [the same happens if I use Now()]) is before the date given in the variable dtePasswordExpiry it continues to begin the process to change password.
Any thoughts on why this is. It happened for the first time today (it previously worked fine since its creation). We changed from Daylight Saving Time back to GMT over the weekend, would this have any effect? Clutching at straws here!
Thanks for your help,
Colin