|
-
Jul 26th, 2006, 01:28 PM
#1
Re: [2005] Getting rid of a repeat?
your diagnose of the problem is spot on... the problem arises because NOW() includes the time, down to the milisecond.... what you should be comparing is the date portion. Because even if you set it to a date, it won't have the time, so it assumes midnight, which is less than Now() (which is the current date time) and you get the message.
try this:
VB Code:
If Ffrom.Value < System.Data.Date.Today Then
I think that's the right namespace path.....
-tg
-
Jul 26th, 2006, 02:04 PM
#2
Thread Starter
Member
Re: [2005] Getting rid of a repeat?
 Originally Posted by techgnome
your diagnose of the problem is spot on... the problem arises because NOW() includes the time, down to the milisecond.... what you should be comparing is the date portion. Because even if you set it to a date, it won't have the time, so it assumes midnight, which is less than Now() (which is the current date time) and you get the message.
try this:
VB Code:
If Ffrom.Value < System.Data.Date.Today Then
I think that's the right namespace path.....
-tg
It says 'Date' is not a member of 'Data'. and it doesn't solve it. Thanks for trying though. After reading your post i tried, and this still doesn't solve it.
Thanks,
Mutasim
dim Mutasim as vbnewbie = stupid
hehe!

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|