Fairly Simple Calculation (that I Cannot Do!)

Mar 14, 2006

Hello.

Please see attached picture for an idea on what i'm talking about. I need to achieve the following:

I have a query and it gives a total policy commission for each policy an agent sells. There are several agents under one commission statement.

For example

agent ref 1, policy 1, information, commission amount
agent ref 1, policy 2, information, commission amount
agent ref 1, policy 3, information, commission amount
agent ref 2, policy 1, information, commission amount
agent ref 2, policy 2, information, commission amount
agent ref 2, policy 3, information, commission amount
agent ref 2, policy 4, information, commission amount
agent ref 3, policy 1, information, commission amount
etc...

What i need access to do is add a total for each agent before it shows the next agent, so the above example would change to:

agent ref 1, policy 1, information, commission amount
agent ref 1, policy 2, information, commission amount
agent ref 1, policy 3, information, commission amount
Total: commission total
agent ref 2, policy 1, information, commission amount
agent ref 2, policy 2, information, commission amount
agent ref 2, policy 3, information, commission amount
agent ref 2, policy 4, information, commission amount
Total: commission total
agent ref 3, policy 1, information, commission amount
etc...

I hope that this makes sense, and i know its probably very simple but im a n00b! so any help would be much appreciated.

Kind Regards
Darren

View Replies


ADVERTISEMENT

How Would I Do This (fairly Simple I Think)

Apr 24, 2006

I have a created a database. A field in a table is predicted grade, the answers to that are distinction, merit,pass,fail.

From here I need to attach a numerical value to each one. Distinction would be -4 merit -3 pass-2 fail -0.

I need to do the same for the table achieved grade.

Except these values are positive so distinction would be 4 and so on.

Now i imagine I need to do a query to do this, so I think my question would be

How do I give each grade a numerical value. The numerical value of pridcted grade would then be added with the numerical value of the achieved grade to produce a residual.

How would I do all of this, ive been trying for the past 2 h ours and am completly stumped.

View 2 Replies View Related

Fairly Simple Forms Help

Nov 17, 2004

I have a db of task responsibility. I have a table of tasks and a table of employees. I then have a table that (theoretically) has just employee IDs and whichever tasks (also by a unique ID) they may be involved with. The trouble I'm having is with the form that assigns employees to certain tasks. Essentially, I want to be able to select a task and then select which employees go along with that task. I created a form for the tasks which lets me select individual tasks, and then a subform that would let me enter in the employees. The problem is with the subform, whenever I go to select an employee (from a combo box) it tells me that the field cannot be filled in or other errors. I can't quite figure out what is going on here.

Thanks

View 1 Replies View Related

A Fairly Simple Problem

Oct 14, 2005

i have this table called events with ONLY 6 entries.
Fields:
no - autonumber
event - text
datetime - text
notes - text

i have a page in my site showing all the contents of this table in 1 HTML table.

the thing is, i want the page to have 2 HTML tables,
"Upcoming Events" - containing entry numbers 1,2,3

and

"Recent Events" - entry numbers 4,5,6

how can i do this? can u please give me some code. thanks in advance. appreciate it.

View 7 Replies View Related

Simple Calculation Help

Jul 20, 2007

Well, I hope this is simple, but for some strange reason, very difficult for me.

I'm having issues setting up a calculation between 2 tables. for example:

Table1 ID Quantity


Table2 TransID Used


The "Quantity" from Table1 is a set number but the "Used" will change. all I want to do is have a Form and Report that will subtract the "Used" from Table2 from "Quantity" from Table1.

I've tried: =Table1.Quantity - Table2.Used
=Quantity - Used

what am I doing wrong? all my attempts have failed, even though I have setup a relationship between the 2 tables.

any idea?

thx

View 6 Replies View Related

Really Simple Calculation That I Cant Do

Apr 18, 2008

Hiya,

I have a formula in my querry which works.

total: (Ticket_Info!T_Number_of_tickets*Ticket_Info![T_How_many_games/events_does_this_allow?])-(Ticket_Info![How many Clients are going?]+Ticket_Info![How many Aplant staff are going?])

Now what I would like to happen is that if this value does not =0 then for a mesage to pop up to alert the user that they need to ammend something.

Background of database:
It is to record where and who a business take people on trips out.
So the questions asked have been: how many tickets do you have? Then how many people are you taking (followed by a break down of people). So if the number of tickets don't = the number of people going the user needs to fix it.

Thank you so much im completly lost!

Sarah :(

View 3 Replies View Related

I Need To Make A Simple Calculation

Feb 4, 2007

Hi,

I have used the Contacts template.

I want to make a simple calculation for mins remaining from sunbed courses.

So lets say one of my clients in my database was called Sally.
When I open up Sallys details screen I want it to show:
- What sunbed course she's on (inputed via details screen per course taken out)
- How many mins she's used (inputed via details screen per visit)
- How many mins remaining (calculated for us)

I don't know how to make these calculations!!!
I can not work out how to put formulas into the Contacts table.
Can anyone help me out please?

(see pic below)
http://img219.imageshack.us/img219/9760/accesssunbedzd5.jpg

View 8 Replies View Related

Simple Calculation Using Value In Subreport

Nov 25, 2004

I am trying to do a simply calculation on a report which uses a value from a subreport. The main report is called rptAllProjectsStatus the sub report is called rptAllProjectsStatusExp, and the box from the sub-report is called tboAmount which is controlled by query.

In the main report I have a box whose control source is
=[tboFixedFee]-[tboSumStaffingCost1]-rptAllProjectsStatus!rptAllProjectsStatusExp!tboAm ount


But it doesn't recognise this formula - what am I doing wrong?

I know the problem is with the latter part of the formula (in connection with the sub-report), as if I remove this part, the rest of the calculation works fine.

thanks
S

View 6 Replies View Related

Simple Calculation Won't Work?

Jan 19, 2005

I have been designing my first database and am just about ready to finish my first report. I have created a text box and added the following to the box =myfield1+myfield2+myfield3+myfield4

I created this through the expression builder so I know the fields a correct but now the calculation is not working. I don't get any calculation in the box except a "0". Why isn't this calculation giving me the sum of these 4 fields?

Please please help.....

View 8 Replies View Related

Simple Calculation Question

Dec 21, 2005

I have a report that contains an expression field for total sale. It is computed from multiplying quantity * price. I want to have a grand total item at the end of the report that sums all the "total sales" items. My question is what is the syntax to do this and also what section of the report should I put it in? Should I put it in the header? Any and all help is appreciated.

View 3 Replies View Related

Simple Calculation Question

Aug 3, 2007

Hello,
This is a pretty simple question I'm sure. This is a simplified version of my data:
AAC |Begin |End |Total # of days |Average for AAC
m28357|7001|7195|
m28357|7001|7124|
m20195|7002|7234|
m20195|7002|7143|

The purpose is to calculate the total # of days by just subtracting the julian dates and then I need to figure out how to have some sort of way to calculate the average # of days but only based on AAC.
Thank you for the help!

Kat

View 1 Replies View Related

Modules & VBA :: Open Recordset To Do A Simple Calculation And Lock It Again

Feb 18, 2014

I'm trying to open or unlock a recordset do do a simple calclation and then relock the record set. How this can be done with vba?

View 7 Replies View Related

Fairly New To Access - Can I Do This?

Jan 12, 2007

I have a table with data that I want to use IF statements. For example... IF column A is >10 and column F is 70% or below then I want it to return a "Yes" or a "No".

Is this possible? Would I use a query?

Thanks

View 1 Replies View Related

Fairly New To Access With A Question

Dec 28, 2006

I am working on a database that involves two dates. One is a date of purchase and one is a date of sale. I would like to be able to query a specific month and find out what assets are actually being held. For example

Purchase Date Sell Date
1/1/06 3/31/06
3/1/06 12/31/06
1/1/06 12/31/06

If I were to query 1/06 then 2 of the assets should show. If I were to query 3/06 then all three of them would show. I keep thinking there has to be a simple way to do this but I'm ready to tear my hair out. I keep thinking that I should probably figure out the dates between the two columns and then do a parameter query for the month and year that I'm looking for, but I can't figure out how to get the range between the two dates.

Thanks in advance for any help!

View 1 Replies View Related

Simple Question For A Simple DB

Dec 29, 2006

Ok I am right now making a simple Vendor/Product database to create a line sheet for some sales folks. I have 3 tables: Vendors, Products, and an associate entity Vendors_Products to relate the two. I have a form currently that draws the Vendor Name (primary key) from the Vendor table and the Product Name from the associate entity. This allows me to create new vendors and select current product types from a drop down box. The problem is that the drop down box is too long and it is tiresome when 1 vendor has 10 product types.

Can anyone tell me how to resolve this? I thought it would be better to have option buttons and display all available products. Then you could just click all of the option buttons that apply to that Vendor and it would create the relationships...is this possible?

View 1 Replies View Related

IF Then Calculation

Oct 11, 2005

Trying to calculate a few fields. 1st field is [delays] and 2nd field is [Planned]
The Plan scheduled for 60 and the Delays are an entered value. In the on update command button on the form I want code that will take the value above 60 and add then to the value in the [Delays] So if delays is 10 and the planned is 70 then planned will change to 60 and delays will = 20

any help

Jon

View 2 Replies View Related

Q:Calculation

Oct 24, 2005

Hi All.

I have 3 tables in Access:
tblCurrency (Fields: IDCurrency, CDate, CRate)
tblOrder (Fields: IDOrder, OName, ODate)
tblCalculation (Fields: IDCal, Rate1, Rate2, Rate3, COrder)
IDOrder is related to COrder with "One to Many" connection.

I have Form frmOrder, based on tblOrder. For Example Form has 1 record:
IDCal OName ODate
1 XXXX 2005.10.24

For this record related table has 2 records:
IDCal Rate1 Rate2 Rate3 COrder
1 10 3.5 15 1
2 6 4.2 12 1

tblCurrency for Exapmle have one record too:
IDCurrency CDate CRate
1 2005.10.24 0.2

In frmOrder I have textBox txtRate. Here I need to be calculated:

=Sum (Rate1*(CRate from tblCurrency Where tblCurrency.Cdate = tblOrder.Odate)+Rate2*Rate3 for Each record related to tblOrder).
By Exapmle: (10*0.2+3.5*15)+(6*0.2+4.2*12)=106.1

Please help with expression.
Thank You in advance.

View 3 Replies View Related

Need Help With Calculation

Jun 9, 2007

hey i hope some one can help me...

I am making a database for products and suppliers. Many suppliers can supply each product.

The product details are in a table called products, the suppliers details are stored in a table called suppliers and the suppliers offer for each product is stored in a table called prices.

the structure is as follows:

Table: Products
Product Name
Trade Price

Table: Suppliers
Supplier Name

Table: Prices
Product Name
Supplier Name
Supplier Offer

I have form that shows the product details and a subtable linked to the table:prices.

The problem

I need to add a field in the subtable called "Percent off trade" which is the trade price - supplier price / trade price * 100

i created a query showing the same records as the prices table plus the field "trade off price" and set the Field to:

Percent Off Trade: ([Forms]![Products]![Trade Price]-[Prices]![Supplier Price])/[Products]![Trade Price]*100

But this doesnt give me the correct percent :confused:

I hope i have explained this query and would really appreciate anyone who takes the time to suggest anything that could help

thanks in advance!

View 5 Replies View Related

Calculation

Nov 21, 2007

How can I multiplicate two numbers from two columns in a subform, show their result at the end of the row and then calculate sum of those results on the main form. This is something what I know how to do but the problem is following:

The total sum on the main form should be multiplicated wit 0,5 % and then reduced for a value of a specific row sum. It should be something like this: (Sum of rows sum * 0,5 %) - Sum of the specific row = Total sum on the main form. And all of this should be on a report too.

View 1 Replies View Related

What Calculation To Use?

Jan 2, 2006

What would I use for a formuls to find all product that are in stock.
like I have a price for all products that i stock, but some i don't have in stock. How would I query for the ones that I have in stock?
In my table I have it as UnitsOnHand, I have it as how many, like 1 or 3 or 4 etc. And also a field for Paper or Metal.
How would I query just for paper and not metal?
I am also going to need a query for the lowest price and the highest price.
Please understand I am New and I have allready search through all the post and can't seem to find anything close to what I am trying to do.
Any and all help would be great

Thank You
WackoWolf

View 10 Replies View Related

Need Help In Calculation

Jan 20, 2008

hi,


i'm working in a database and i face some problems in some calculation

this is my table which contain these fields:
NOC number
Company Name
Warning Letter


Note: each company has many NOC

Here what i need from the query

1- create a field which contain a total of warning for each month
2- create a field which contain a total of warning for each NOC
3- create a field which contain the total of warning for the company

View 3 Replies View Related

Help With A Calculation!

Feb 26, 2008

This is probably an easy calcualtion I am overthinking...
I am trying to make a query where I am calculating the "Total Value" of each customer's order of each item for the current week. The item "my company" is selling is fish, sizes small, medium and large all at different prices. I'm not exactly sure what they mean by "Total value", but I assume I take the cost times the quantity...but then what is the difference between Total Value and total ordered (in dollar amount)? Any suggestions?

View 2 Replies View Related

Calculation

May 25, 2005

I wonder if someone can point me in the right direction with a calculation problem. I have never done calculations in access before but want to make a balance sheet for a club account that I am designing. Very much in its trial stages, I have a form with three currency text boxes in it, set up as continuous. MoneyIn and MoneyOut are in the main form whilst Total is in the footer. All I want is to be able to put in a value in MoneyIn or MoneyOut and for the Total to update. Problem! I dont have a clue where to start! :rolleyes:

View 2 Replies View Related

Calculation Help

Jun 20, 2006

Here is a part of my database nicely zipped for you guys to help me with.

whats happening is when i click the totals button whatever the highest cost option that is selected with a "Y" should be displayed in the totals text box.

example:

Installation of heating system - "Y"
Replacement Kitchen and Bathroom - "Y"
Total should be "£90"

The code behind the button works fine with every choice but not the installation of the heating system. When this is selected "Y" the code seems to be ignoring it.

Any help will be much appreciated.

View 4 Replies View Related

Payroll Calculation

Dec 6, 2005

I am trying to type a code based on 1 & 2 criterias. However, I am having a problem on the first criteria because it is adding 8 hours when it shouldn't. Can someone help to either fix my code or write a new one? Thank you very much!

Criteria 1: If the day_of_wk is 1, calculate time-reg_time/60, If the day_of_wk is 1 and time is less than 0, calculate time-reg_time/60+24

Criteria 2: If the day_of_wk is 2, calculate time/60, If the day_of_wk is 2 and time is less than 0, calculate time/60+24

My code: pre: IIf([day_of_wk]="2",[time]/60,IIf([time]<0,([time]-[reg_time])/60+24,([time]-[reg_time])/60))

View 4 Replies View Related

Time Calculation

Jan 25, 2006

i have two date/time fields

sdate (start date) 01/01/2006 14:30 - format(dd/mm/yyyy hh:mm)
edate (end date) 02/01/2006 14:31 - format(dd/mm/yyyy hh:mm)

i need to get answer in HH:MM (24:01)


pls help me

thnx best regards
ibu

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved