A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Forms and Time



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 29th 06, 03:52 PM posted to microsoft.public.outlook.program_forms
Drew
external usenet poster
 
Posts: 21
Default Forms and Time

Can anyone help?

I am trying to make a form in outlook that you enter an alloted time, a
start time, and an ending time. the form then calculates how much time has
been used and how much time is remaining fro mthe alotted time.

Thanks in advance for your help.
  #2  
Old June 29th 06, 04:05 PM posted to microsoft.public.outlook.program_forms
Drew
external usenet poster
 
Posts: 21
Default Forms and Time

To be more specific:
I know all the fields i need i just need to know the function/code to do the
calulations.

Thanks,
Drew

  #3  
Old June 29th 06, 04:09 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Forms and Time

Is this something you want to do with a formula or with VBScript code behind the form? Regardless, you'll want to use the DateDiff() function to calculate the difference between two date/time values.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Drew" wrote in message ...
To be more specific:
I know all the fields i need i just need to know the function/code to do the
calulations.


"Drew" wrote in message ...

I am trying to make a form in outlook that you enter an alloted time, a
start time, and an ending time. the form then calculates how much time has
been used and how much time is remaining fro mthe alotted time.


  #4  
Old June 29th 06, 07:36 PM posted to microsoft.public.outlook.program_forms
Drew
external usenet poster
 
Posts: 21
Default Forms and Time

I would like to use a formula as i don't know aything about vbscript.

"Sue Mosher [MVP-Outlook]" wrote:

Is this something you want to do with a formula or with VBScript code behind the form? Regardless, you'll want to use the DateDiff() function to calculate the difference between two date/time values.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Drew" wrote in message ...
To be more specific:
I know all the fields i need i just need to know the function/code to do the
calulations.


"Drew" wrote in message ...

I am trying to make a form in outlook that you enter an alloted time, a
start time, and an ending time. the form then calculates how much time has
been used and how much time is remaining fro mthe alotted time.



  #5  
Old June 29th 06, 08:05 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Forms and Time

DateDiff() is a function that you can use in a formula as well as in vbscript:

1) Bring up the Properties dialog for the control that's bound to the field where you want to store the calculated value and go to its Value tab.

2) At the bottom of the dialog, select "Calculate this formula automatically," and click Edit to bring up the formula editor.

3) Under Function, look under Date/Time, and select DateDiff(). That will put this shell into the editor:

DateDiff( interval , date1 , date2 , firstweekday , firstweek )

You can delete the last two parameters.

4) The first parameter, interval, is what unit do you want the result in -- days, weeks, etc. Days would be "d"

5) The other two parameters are your two date fields. You can type them in, surrounded by brackets. Or, you can insert them using the Field choices on the edit window.

6) Click OK to return to the form. Run the form, and enter some data to test.

If you run into problems, post back with the exact text from your own formula.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Drew" wrote in message ...
I would like to use a formula as i don't know aything about vbscript.

"Sue Mosher [MVP-Outlook]" wrote:

Is this something you want to do with a formula or with VBScript code behind the form? Regardless, you'll want to use the DateDiff() function to calculate the difference between two date/time values.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Drew" wrote in message ...
To be more specific:
I know all the fields i need i just need to know the function/code to do the
calulations.


"Drew" wrote in message ...

I am trying to make a form in outlook that you enter an alloted time, a
start time, and an ending time. the form then calculates how much time has
been used and how much time is remaining fro mthe alotted time.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Message Forms in Personal Forms Library Debbie Hadsel Outlook - Using Forms 4 May 30th 06 07:11 PM
Indiana time to daylight savings time - appointments shifted one h Dezigner Outlook - Calandaring 3 April 4th 06 11:34 PM
display time in calendar blocked out between start and end time BonnieB Outlook - Calandaring 0 March 22nd 06 05:47 PM
Outlook calendar time zone: current time is 1 hour ahead of clock Natalie Outlook - Calandaring 2 February 12th 06 06:26 AM
Changing Series Appt time from All Day to set time Bryan Outlook - General Queries 1 January 17th 06 04:24 AM


All times are GMT +1. The time now is 08:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.