![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |