MS ACCESS - SUM - ms-access

I have a form called Items list which stores multiple values for one project. i have a total for each item that is added (as seen in picture) i would now like to make it so that the "overall Total" field stores the overall total for the items for that project.... and then store it in a new field in the table.

SELECT SUM(TOTAL) FROM TABLE
If necessary add the Total textbox value to above result, when any value(s) are edited in screen

Related

SSRS Row number based on 2 groups

How to create row number based on 2 groups
My issue is
I created new field named test to test row number and my code in next pic link
Group based on ItemId
but if the item duplicated the row number start duplicate also like next Pic
hot to create number sequence based on vendor and itemid , i need the number sequence continues with every item even it duplicated
You need to add the scope. Then the runnung value will be calculated on the whole dataset or based on your grouping. For example:
=RunningValue(Fields!ItemId.Value, Count, "YourDatasetName")
=RunningValue(Fields!ItemId.Value, Count, "YourGroupName")
This gives you two different results based on the scope. And you need the second one I think.

how can we separate totals on the basis of group

how can we separate the totals on the basis of column value. need to create a report which have multiple columns, every column have multiple values. need sum of every row group value. I have added sample as below. please help me regarding same.
This is as single as context clicking on your field and clicking "Add Total". Clicking this option will add a subtotal to your next group. Clicking again on that total will create a new total on the next group level until you eventually get to the final, grand total.

MS Access - Customized Price List

In MS Access, I've got Table A that lists products with the price for each product and Table B with Customer Name, Customer ID and the Profit Margin associated for each customer.
What I need to do is create a customized price list for each customer based on their profit margin. Each customer will receive the exact same list of products from Table A. The only difference being that the price column in Table A will change depending on the Profit Margin column contained in Table B.
Ultimately, I would use this to create a report that would then be emailed out to each customer.
I’m having some difficulty figuring out how to set it up so that all customers in Table A are linked to one price list with differing prices depending on their profit margin.
If anyone could help give me a push in the right direction I would greatly appreciate it.
Thank you
I'm assuming you have the following tables:
tblProducts, with fields Product and Cost.
tblCustomers, with fields Customer and Margin.
I'm not sure how your margin works (is it a factor which is multiplied by the cost, or a fixed amount which is added on?), but the formula should be easy to work out to suit your needs.
Create a query. In query design mode, show the two tables. Add the field tblProducts.Product to your query, and the expression [tblProducts].[Cost] * [tblCustomers].[Margin].
In the Criteria for this expression, you can set, for example, [tblCustomers].[Customer] = "John". Or, instead of specifying a particular customer, you could reference a control on a form. In this way, changing the control on the form (eg. selecting a customer from a listbox) will change which customer's data the query is based on.
Then you can build a query on the report as usual.

Access 2010: Expression to count number of items in a multivalued field

In Access 2010, I have a table with a multivalued field. On my form, this field is represented as a list where I can check as many values as I want. I want to display the number of selected items. I try using
=Count([MyField])
but it gives the total number of selected items in all records. How can I get the count of selected items in the current record only?

Selecting total results on a report

I have a matrix with several columns and rows. Example the rows are made up of names for a company and along the top are total sales, total calls, etc. So each row will have a number under each column, and at the bottom of each column is a total for each column. Currently i have the report set up that if you click on any of the numbers it pulls up a detailed report for those particular items. But if you select the total number it brings up the results for the first row's column. Is there a way to make it return all the items details when you click the total number for that column instead of what ever the detail would be for the first row of that column? Does this make sense?
You can use the inscope function to check whether you are in the value or total row. If you are not in scope then pass the correct parameter to the details report.