|
-
Mar 20th, 2000, 08:35 PM
#1
Thread Starter
Lively Member
Hello I am trying to find the number of days in between 2 dates and when I use the following code it does not work right all the time. The problem I believe is when I subtract dates from 2 different YEARS. Does anyone have any suggestions on this....
txt1.text = DateDiff("d", txt2.text, Date)
-
Mar 20th, 2000, 09:10 PM
#2
Lively Member
Does txt2.Text need to be converted to a date variable or is it not formatted properly? It seemed to work all right for me in VB6.
-
Mar 20th, 2000, 10:52 PM
#3
Fanatic Member
Examples
Hi VBAmateur,
I'm with bsmith, I ran it on VB6 without any problems. It will be a lot easier to help you if you provide example dates that are giving you trouble.
All the best.
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
|