Solved

outlook forms help

Posted on 2004-04-19
4
212 Views
Last Modified: 2010-04-17
im attempting to make a timesheet for our office out of an outlook form.  I need to figure out how to get my "hoursworked".  i basically have 2 fields...  time started and timeended.  I need a third field to show the difference between these 2 so i can have the hours worked.  How would I go about this?  Im a complete noob to these outlook forms and vb.
0
Comment
Question by:mrsmith14
4 Comments
 
LVL 3

Expert Comment

by:elantra
Comment Utility
Not exactly sure what you are trying to do.  Perhaps you can be more descriptive in the problem you are facing.

What are your inputs?  Textboxes?  Read-Only Textboxes? Hard-coded labels?
What kind of data goes in your inputs?  A start date and end date?

If I am guessing what you want correctly, perhaps the following information will help you:

Create a third textbox (field) called "hoursworked".  Add a button called "calculate".

Add the following bit of code:
------------------------------------------------
Private Sub calculate_Click()
     hoursworked.text = timeended.text - timestarted.text
End Sub
0
 
LVL 1

Author Comment

by:mrsmith14
Comment Utility
what i was in search of was the datediff() function.  
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
Comment Utility
PAQed, with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now