A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I add a Discount facility in the Time & Billing Database?



 
 
Thread Tools Display Modes
  #1  
Old October 27th, 2005, 12:00 PM
TrueEnigma
external usenet poster
 
Posts: n/a
Default How do I add a Discount facility in the Time & Billing Database?

I am using the Time & Billing template to create a database for a service
company. I want to be able to apply a % discount to the 'hours billed' only.
I know what expression to use but am not sure where I should apply it. I have
added a 'Discount' field to the 'Client' table and added this table to the
'Hour by Project' query and modified the 'Billing Amount' expression to
calculate the amount with the discount amount. In the query this results as a
number with +8 digits after the decimal point. The fields in the database
that are automatically updated i.e. the client or project subforms totals,
are blank. What am I doing wrong and where should I place the discount amount
and the expression to calculate the hours to be billed?
  #2  
Old October 27th, 2005, 02:52 PM
Al Camp
external usenet poster
 
Posts: n/a
Default How do I add a Discount facility in the Time & Billing Database?

True,
Your calculated BillingAmount is an unbound calculated field. The
ControlSource is a calculation, and not bound to any field in your table.
But, that's OK, because you shouldn't be saving the result of a
calculation in your table anyway.
Since you are saving Hours and Discount, you can always recalculate the
BillingAmount "on the fly" in any subsequent form, query, or report.
Calculations should be for display only.
Example: For a Discount of .10, a calculated unbound field will "display"
the correct BillingAmount
= Hours * Rate * .90
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

"TrueEnigma" wrote in message
...
I am using the Time & Billing template to create a database for a service
company. I want to be able to apply a % discount to the 'hours billed'
only.
I know what expression to use but am not sure where I should apply it. I
have
added a 'Discount' field to the 'Client' table and added this table to the
'Hour by Project' query and modified the 'Billing Amount' expression to
calculate the amount with the discount amount. In the query this results
as a
number with +8 digits after the decimal point. The fields in the database
that are automatically updated i.e. the client or project subforms totals,
are blank. What am I doing wrong and where should I place the discount
amount
and the expression to calculate the hours to be billed?



  #3  
Old October 27th, 2005, 03:29 PM
TrueEnigma
external usenet poster
 
Posts: n/a
Default How do I add a Discount facility in the Time & Billing Databas

Thank you for replying.
Are you saying that I don't need to modify the 'billing amount' expression
in the ' hours by project' query but to put the expression that you have
given in an unbound box within the form or report?

"Al Camp" wrote:

True,
Your calculated BillingAmount is an unbound calculated field. The
ControlSource is a calculation, and not bound to any field in your table.
But, that's OK, because you shouldn't be saving the result of a
calculation in your table anyway.
Since you are saving Hours and Discount, you can always recalculate the
BillingAmount "on the fly" in any subsequent form, query, or report.
Calculations should be for display only.
Example: For a Discount of .10, a calculated unbound field will "display"
the correct BillingAmount
= Hours * Rate * .90
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

"TrueEnigma" wrote in message
...
I am using the Time & Billing template to create a database for a service
company. I want to be able to apply a % discount to the 'hours billed'
only.
I know what expression to use but am not sure where I should apply it. I
have
added a 'Discount' field to the 'Client' table and added this table to the
'Hour by Project' query and modified the 'Billing Amount' expression to
calculate the amount with the discount amount. In the query this results
as a
number with +8 digits after the decimal point. The fields in the database
that are automatically updated i.e. the client or project subforms totals,
are blank. What am I doing wrong and where should I place the discount
amount
and the expression to calculate the hours to be billed?




  #4  
Old October 29th, 2005, 04:48 AM
Al Camp
external usenet poster
 
Posts: n/a
Default How do I add a Discount facility in the Time & Billing Databas

True,
You can put the calculation in the query for the report like this...
BillingAmount : Hours * Rate * Discount
Then BillingAmount can be placed on the report, and can then be
arithmetically operated upon in any footer of that report. Such as...
=Sum(BillingAmount) or =Avg(BillingAmount) etc....
On a form you're only concerned with an unbound field to "display" the
calculated BillingAmount, so just place it on the form like any other
control. No need to have it in the query for the form.

--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

"TrueEnigma" wrote in message
...
Thank you for replying.
Are you saying that I don't need to modify the 'billing amount' expression
in the ' hours by project' query but to put the expression that you have
given in an unbound box within the form or report?

"Al Camp" wrote:

True,
Your calculated BillingAmount is an unbound calculated field. The
ControlSource is a calculation, and not bound to any field in your table.
But, that's OK, because you shouldn't be saving the result of a
calculation in your table anyway.
Since you are saving Hours and Discount, you can always recalculate
the
BillingAmount "on the fly" in any subsequent form, query, or report.
Calculations should be for display only.
Example: For a Discount of .10, a calculated unbound field will
"display"
the correct BillingAmount
= Hours * Rate * .90
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

"TrueEnigma" wrote in message
...
I am using the Time & Billing template to create a database for a
service
company. I want to be able to apply a % discount to the 'hours billed'
only.
I know what expression to use but am not sure where I should apply it.
I
have
added a 'Discount' field to the 'Client' table and added this table to
the
'Hour by Project' query and modified the 'Billing Amount' expression to
calculate the amount with the discount amount. In the query this
results
as a
number with +8 digits after the decimal point. The fields in the
database
that are automatically updated i.e. the client or project subforms
totals,
are blank. What am I doing wrong and where should I place the discount
amount
and the expression to calculate the hours to be billed?






  #5  
Old October 30th, 2005, 02:26 PM
TrueEnigma
external usenet poster
 
Posts: n/a
Default How do I add a Discount facility in the Time & Billing Databas

Al Camp
Thank you for that...it seems very clear now. Will give it a go tomorrow.
Thanks again

"Al Camp" wrote:

True,
You can put the calculation in the query for the report like this...
BillingAmount : Hours * Rate * Discount
Then BillingAmount can be placed on the report, and can then be
arithmetically operated upon in any footer of that report. Such as...
=Sum(BillingAmount) or =Avg(BillingAmount) etc....
On a form you're only concerned with an unbound field to "display" the
calculated BillingAmount, so just place it on the form like any other
control. No need to have it in the query for the form.

--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

"TrueEnigma" wrote in message
...
Thank you for replying.
Are you saying that I don't need to modify the 'billing amount' expression
in the ' hours by project' query but to put the expression that you have
given in an unbound box within the form or report?

"Al Camp" wrote:

True,
Your calculated BillingAmount is an unbound calculated field. The
ControlSource is a calculation, and not bound to any field in your table.
But, that's OK, because you shouldn't be saving the result of a
calculation in your table anyway.
Since you are saving Hours and Discount, you can always recalculate
the
BillingAmount "on the fly" in any subsequent form, query, or report.
Calculations should be for display only.
Example: For a Discount of .10, a calculated unbound field will
"display"
the correct BillingAmount
= Hours * Rate * .90
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

"TrueEnigma" wrote in message
...
I am using the Time & Billing template to create a database for a
service
company. I want to be able to apply a % discount to the 'hours billed'
only.
I know what expression to use but am not sure where I should apply it.
I
have
added a 'Discount' field to the 'Client' table and added this table to
the
'Hour by Project' query and modified the 'Billing Amount' expression to
calculate the amount with the discount amount. In the query this
results
as a
number with +8 digits after the decimal point. The fields in the
database
that are automatically updated i.e. the client or project subforms
totals,
are blank. What am I doing wrong and where should I place the discount
amount
and the expression to calculate the hours to be billed?






 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spreadsheet/VBA Project Consulting: 50% Discount or Even Free - Limited Time Only Daniel CHEN Worksheet Functions 3 June 1st, 2005 05:48 AM
Table Design A. Williams Database Design 3 April 29th, 2005 07:02 PM
Encrypt AccesS File? milest General Discussion 2 February 9th, 2005 07:58 PM
"Time and Billing" database template Lou DiNetta General Discussion 0 November 5th, 2004 04:57 PM
Time and Billing Database from MS Office Online Stumped New Users 1 July 20th, 2004 12:13 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.