Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 22nd, 2011, 07:37 AM
Registered User
 
Join Date: Dec 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post calculate (rate) * (hours worked)

Please Can Someone help me

I have the folowing fields StartTime, EndTime, HourlyRate, in a table
HoursWorked: Format([StartTime]-1-[EndTime],"Short Time")

So Know I need HourlyRate*HoursWorked gives me error

StartTime 23:00 EndTime 10:00 = 12hours worked

PayAmount: Round(CCur(Nz(DateDiff("n",[StartTime],[EndTime])*[HourlyRate]/60,0)),2) this works but gives negative value





Similar Threads
Thread Thread Starter Forum Replies Last Post
Rate this book? badness BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 4 July 13th, 2007 07:42 PM
Exchange rate msbsam ASP.NET 2.0 Basics 0 January 4th, 2007 03:50 AM
Calculate total hours based on Time deepcover1 Access 1 April 5th, 2006 01:50 AM
ok it worked gilgalbiblewheel Classic ASP Basics 1 January 5th, 2006 10:32 PM
insert into not worked knight Classic ASP Databases 11 June 3rd, 2004 05:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.