Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

outlook forms help

Posted on 2004-04-19
4
Medium Priority
?
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:elantra
ID: 10863429
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
ID: 10969262
what i was in search of was the datediff() function.  
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 11188530
PAQed, with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Simple Linear Regression

730 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