Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-21-2004, 10:50 AM   PM User | #1
Dingbat
Regular Coder

 
Join Date: Oct 2002
Posts: 137
Thanks: 10
Thanked 0 Times in 0 Posts
Dingbat is an unknown quantity at this point
Angry Access Form

Hi Guys,

I am having a problem with a form. My need is to calculate the number of days from a given date to a given date and then to display the result in a number of days field.

Help would be greatly appreciated.

Rgards,

The Dingbat.
Dingbat is offline   Reply With Quote
Old 03-23-2004, 01:08 AM   PM User | #2
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
what language?

Jason
Jason is offline   Reply With Quote
Old 03-31-2004, 02:43 PM   PM User | #3
smeagol
Regular Coder

 
Join Date: Jul 2002
Location: Kentucky
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
smeagol is an unknown quantity at this point
Like this, using DateDiff:

The following shows the difference in days between two dates:

Dim intDays As Integer
intDays = DateDiff("d", "03-31-2004", "04-02-2004")

'Returns 2

Hope this helps.
__________________
Kevin
Kevin Adams | Compiled Code
smeagol is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:07 AM.


Advertisement
Log in to turn off these ads.