Anyone tell me what is wrong with this!

MadMaxx

.NET foo
Local time
Today, 16:41
Joined
Jun 27, 2003
Messages
138
Can't seem to figure this one out.

Code:
If (FormatDateTime(Now(), vbLongTime) > #9:00:00 AM#) And (FormatDateTime(Now(), vbLongTime) > #9:00:00 AM#) Then

SQL = "expression"

else

SQL = "diffexpression"

end if

Now when the form loads up it is always going to the esle statement wven when I set the time to the if statement.

Anyone see anything why it wouldn't work.

Thanx
 

Users who are viewing this thread

Back
Top Bottom