PC Review


Reply
Thread Tools Rate Thread

Calculations using time and currency

 
 
joseph.johnson4
Guest
Posts: n/a
 
      8th Apr 2010
I have been trying to figure out how to take the number of hours worked field
and multiply it by the hourly wage field in order to get the gross pay, but I
either come up with #Name? or #Error?. The expression that I had been trying
to utilize was =Sum([HoursWorked]*[Hourly Wage]). I had even tried utilizing
the expression =(DateDiff(("n",[TimeIn],[TimeOut])/60)*([Hourly Wage]).
However, when I type that expression in and then go back to the Form View the
box is just blank.

I would greatly appreciate any suggestions or help to solve the problem that
I am having. I believe that it might have something to do with the
expression, but I am now exactly sure.

Thanks, Joe
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      8th Apr 2010
Where? Where are you trying to do this?

Have you tried creating a Totals query to generate that value?

More info, please...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"joseph.johnson4" <(E-Mail Removed)> wrote in
message news:B7B9B085-8A7D-48FF-B927-(E-Mail Removed)...
>I have been trying to figure out how to take the number of hours worked
>field
> and multiply it by the hourly wage field in order to get the gross pay,
> but I
> either come up with #Name? or #Error?. The expression that I had been
> trying
> to utilize was =Sum([HoursWorked]*[Hourly Wage]). I had even tried
> utilizing
> the expression =(DateDiff(("n",[TimeIn],[TimeOut])/60)*([Hourly Wage]).
> However, when I type that expression in and then go back to the Form View
> the
> box is just blank.
>
> I would greatly appreciate any suggestions or help to solve the problem
> that
> I am having. I believe that it might have something to do with the
> expression, but I am now exactly sure.
>
> Thanks, Joe



 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      8th Apr 2010
On Thu, 8 Apr 2010 10:15:01 -0700, joseph.johnson4
<(E-Mail Removed)> wrote:

>I have been trying to figure out how to take the number of hours worked field
>and multiply it by the hourly wage field in order to get the gross pay, but I
>either come up with #Name? or #Error?. The expression that I had been trying
>to utilize was =Sum([HoursWorked]*[Hourly Wage]). I had even tried utilizing
>the expression =(DateDiff(("n",[TimeIn],[TimeOut])/60)*([Hourly Wage]).
>However, when I type that expression in and then go back to the Form View the
>box is just blank.
>
>I would greatly appreciate any suggestions or help to solve the problem that
>I am having. I believe that it might have something to do with the
>expression, but I am now exactly sure.
>
>Thanks, Joe


Where are you trying to do this? on a Form? If so, what's the form's
Recordsource? Please open the form in design view, view its properties, and
click the ... icon by the Recordsource; post the SQL view of the query (if
it's a query). It would help to know the datatypes of the fields you mention.

--

John W. Vinson [MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre Decimal Currency - Calculations in Excel =?Utf-8?B?S2Vu?= Microsoft Excel Discussion 11 12th Jun 2006 11:22 PM
calculations in currency =?Utf-8?B?dmVyeWNvbmZ1c2Vk?= Microsoft Access Queries 1 14th Dec 2004 01:13 PM
Currency calculations =?Utf-8?B?TW9oYW1lZA==?= Microsoft Excel Worksheet Functions 2 6th Sep 2004 02:33 PM
Currency Calculations Al Yoder Microsoft Access Queries 0 1st Dec 2003 03:46 PM
Currency calculations Stephen Microsoft Access Reports 2 24th Sep 2003 03:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.