Auto Updating Total Order Cost After Quantity Is Changed

Oct 11, 2006

Ok so here is my problem:
I have a form that is realted to four differnt tables with the names: CUSTOMER, ORDER, PRODUCT AND ORDER LINE. With-in the table Order-Line there is a entity called, line_item_cost whcih is the total amount of the order with respect to Quanity_Ordered which comes from the ORDER LINE table and Price which comes from the PRODUCT table and Discount (%) which comes from the CUSTOMER table. When the users goes to change the Quantity_Ordered I need the form to automaticly update the line_item_cost which would calculate [Price]*[Quantity_Ordred]-[Price]*[Discount] . I tried to build a code in VBA to do this, Here is the Code:
Dim a, b, c, d
a = Me.[Quantity_Ordered]
b = Me.[Price]
c = Me.[Discount]
d = a * b - b* c
Me.[Line_Item_Cost] = d

VBA Complies the program but it does not show up in my form.
I think I might be updating it at the wrong point.
Any Suggestions.????

View Replies


ADVERTISEMENT

Updating Total Cost In A Table

May 17, 2007

I have a table called: Invoice which has Invoice No (as the PK), Invoice Date, Total Cost.

I also have another table called Task: which has Task No (as the PK) , Task Type, No of hours, Charge Amount.

The user enters the Details of Task and Invoice in a Form. I have a field called Total Cost of my Form which should Calculate =([No of hours]*[ChargeRate]).

The problem I have is the total cost on the form is not being updated on the Invoice Table with The Total Cost.

Can anyone help please

View 3 Replies View Related

Forms :: Purchase Order Form - Calculate Auto Total Price

May 20, 2014

I need to make an order purchase form like i have customer table and product table, i want to make a form which creates order for a specific customer and I can add as much items as i want and than calculate auto the total price, and an option to make a report for it.

View 5 Replies View Related

Total Cost

Apr 3, 2007

Well at the moment i'm still in the design stages, but i made a database with test fields to see how it would work out best.

Basically i have to have a form with a drop down list for each type of computer componant and when selected the total price for all the items selected so far needs to show up at the bottom of the form.

Or when a button is pressed the price could be updated, that is fine too!

The way i was planning to do it was having an orders page, in which each field was a lookup to a difference table, one for each componant
Processor; ProcID, Proc name, Proc cost

Anyone have any ideas on the easiest way to load the total value for the items selected? Would be much appreciated! Thanks!

View 12 Replies View Related

Total Cost Help

Dec 8, 2004

I need to create a report that shows profit/loss totals for a vehicle that I have listed in a table named "Vehicle Table". I have four columns: Cost, Shipping, Promotional expense, Repair, that I need to total and then subtract from the sales price to show the profit. Then, divide the profit by different percentages to show what I owe each salesman. I need to keep the different columns seperate and be able to increase the dollar amounts in each column as a new invoice is received for each vehicle.
For example, I have a $25.00 wash job in the "Repair column" and then I have to install a new set of tires for $450.00. The total in the "Repair Column" should now be $475.00. I can not make it add to the current balance in each of the certain columns. Would someone be so kind and help?

Jeff

View 4 Replies View Related

Total Cost Displayed

Jan 28, 2008

Hi,

I have a order system which allows customers to place items on. When an item is selected and a quantity has been entered and add button is selected, this adds the item into a listbox with all the details.
Each item that is selected a quantity is selected, this would then work out a total price and this total would be displayd within the list box too.
i want to add all the totals up for that order and have it displayed within a text box.

for example:

product ID, Name, quantiy, item price, totalcost
P0001 Top 5 1.00 5.00
P0002 Top 4 2.00 8.00
P0003 Top 3 1.00 3.00


i then have a text box where i want to display the overall total for these items within. hope this helps. im really stuck on this one!!!

View 4 Replies View Related

Calculating Total Cost

Dec 7, 2004

I am currently making a database project for a school assignment.

I have based the project idea on a local hotel, which consits of a diffrent price dependant on the date booked.

So i have set up a table called "prices" which consits of the following fields:

PriceID
RoomID *
Price
Start Date
End Date

the RoomID is the foreign key, as it is linked (one-to-many) with my Room's table, which consists of the following fields:

RoomID *
Room Number
.. (unecessary fields for the problem)

The room ID is also linked to the bookings table (again one-to-many) with the bookings table consisting of:

BookingID
CustomerID
RoomID
Start Date
End Date
... (uneccessary fields)


what i am hoping to do is (i assume) make a query that will calculate the cost the customer has to pay. So it will look at the start and end date booked in the bookings table and comapre it to the dates in prices table, and find out the cost from this....

any help on going about this would be greatly appreciated, and i hope i have supplied sufficient information (i'll try attach a graphical image of the relationships if that is helpful?)

thanks

michael

View 2 Replies View Related

Queries :: How To Create Total Cost Field

Oct 27, 2014

I have a table called Price list, and in it I have two fields, one called Service and The other called cost. The services are listed and their matching prices are listed beside.

In another table called appointments, when making an appointment, I have linked the information so that I can choose from a dropdown from the price list table, under Service type.

I need to be able to create a receipt for the appointment. How can I do that in a query format?

View 1 Replies View Related

Queries :: Find Cost At Time Of Order?

Jan 27, 2014

I have stored the costs in my database with a date they apply from so I have a series of costs which I can then refer back to using the order date to see what cost I should use at any one time. My table structure is as follows:

Code:

tblExtruderCosts
ExtruderID PK - identifies the extruder
FinishID FK - identifies the finish
Cost - the cost for that finish from that extruder
DateFrom - the date the cost applies from
tblExtHead
ID PK
ExtruderID FK
FinishID FK
Orderdate

View 5 Replies View Related

General :: How To Find Out Total Quantity Sold Per Product

Mar 19, 2014

I've now populated my database with all my sales information.

Now, towards plan/prepare 'replenishments' from suppliers, I need to know how many of each product I've sold (ideally between two given dates ....because recent sales history is more important than say sales information from 1 year ago), but let's keep it simple!

How can I get such info out of my database, the info is contained in my database something like this...

Code:
Order date Qty Product ID

1-feb-2014 1 widget A
2-feb-2014 1 widget A
2-feb-2014 1 widget B
3-feb-2014 2 widget A
4-feb-2014 5 widget C

(in my database, qty is declared as 'double', where Product ID is categorized as 'text')

So I'd like an 'order summary' from the above raw data (contained in my database) to look something like this...

Code:
Widget A Sales = 4 units
Widget B Sales = 1 units
widget C Sales = 5 units

How can I do that please? (I looked at access reports, but couldn't see a way of multiplying 'product by quantity' & then total it all up).

View 12 Replies View Related

Forms :: Summing Up In Continuous Form - Total Sell And Cost Value

Sep 8, 2014

I'm adding to a DB which has been working well for a while.

I have a continuous form which has a query behind it. The query takes two values: (For example)

[LineCost] and [LineQTY]

Inside the query, we use the expression TLC: [LineCost] * [LineQTY]

I need to sum this so a Sale with several lines gives me the total sell and cost value.

If you look at the sfrmEditQuote - you'll see the exact same method - working. sfrmEditSale is direct copy of this form, with some changes here and there. But can I get past the dreaded #error? Nope.

I've tried renaming the fields and text boxes, checking the query, but I keep getting #error on the sfrmEditSale form footer.

I have attached the DBs in old and new format.

View 14 Replies View Related

Forms :: Updating Cost Without Changing Previous Records

Apr 11, 2014

I have this estimate database for a construction company. In this database I calculate how much will a project cost. It's pretty much complete the only problem that I have is trying to figure out how to update the cost of a trade without affecting older records

Example let's say we have a painter that makes $15/hr in project A,B,C,D,E we decide to give him a raise so project F would have a new amount for painter. The problem with that is that it will affect record A-E

I don't want that my department wants to go back and view a history of records. Also take a look at my database it's my first time creating one ...

View 7 Replies View Related

Forms :: Split Record Quantity To Multiple Records Based On Quantity Per Package

Jun 21, 2013

I have a form for inserting invoices, and on the subform records I have a command button to print the labels, the label would contain the quantity of the product, so, if the quantity is ex. 11000 and package contains 2000 only.

so I have to print 5 labels with quantity 2000 and one label with 1000 qty

what I need to do, is when I click the label cmd button to insert the 6 records required to print the labels to temp table

View 8 Replies View Related

Combine Like Product Fields In Table And Total Quantity For Those Like Fields?

Apr 22, 2015

I have a product table that includes the name of the product, the quantity ordered, and the unit price. This is a summary table for the whole year showing all of the orders. The Primary Key is [ID] from the [tblOrders] table. I attached a screen shot of my query. I don't know if you can see it. I want to generate a report where each product is listed once, the unit price for that product is listed, the total number of that item that was ordered throughout the year, and finally, the total amount spent for each item during the year.

View 2 Replies View Related

General :: Auto Insert Date When Another Field Is Changed

Feb 25, 2015

On my form have a status field with about 7 options to choose from a combo box, i have these values set in another table. What i would like is for my other field, which is a date, to automatically change whenever the status field is changed. So i know how long ago the status field was set. So basically if i change the status to complete i want the date to then set the date and time now.

View 5 Replies View Related

Total On Order Form

Feb 14, 2006

Hi, could someone please help me, I don't know how to put a total on my order form, heres my system:
Gamez System (http://www.savefile.com/files/8723782)
Thanks, Bob

View 1 Replies View Related

Total On Order Form And Invoice

Jan 5, 2006

I am trying to add a total to my order form but i am finding it a bit tricky, but once i have done this i also need to create an invoice, which should be simple enough but is quite difficult because of the way the system has been put together....

View 4 Replies View Related

General :: Updating Sort Order Of Records

Nov 10, 2014

I have a table with entries describing a sequence of Tasks (tblTask)

tskID TaskDescription
10 Clean Room
12 Wash Dishes
etc

I have second table called Steps (tblSteps) that is related to tblTask via the field "StepNumber" which is a concatenation of [tskID] & "." & [StepOrder]
So if we look at washing dishes as a task then the steps are as follows:

StepID, StepDescription, StepOrder, StepNumber
202 Put plug in the sink , 1, 12.1
512 Turn on tap, 2, 12.2
205 Put in detergent, 3, 12.3
210 Place dishes in sink, 4, 12.4
435 Turn off tap, 5, 12.5
etc

If I decide delete the third step I get the following:-

StepID, StepDescription, StepOrder, StepNumber
202 Put plug in the sink, 1, 12.1
512 Turn on tap, 2, 12.2
210 Place dishes in sink, 4, 12.4
435 Turn off tap, 5, 12.5

Is there a simple way renumbering the StepOrder entries when one step is totally removed to give me the following?

StepID, StepDescription, StepOrder, StepNumber
202 Put plug in the sink, 1, 12.1
512 Turn on tap, 2, 12.2
210 Place dishes in sink, 3, 12.3
435 Turn off tap, 4, 12.4

View 6 Replies View Related

Total Newbie Question - Form Updating Not Table

Dec 1, 2004

Okay I've looked around but haven't found an answer to this, if there is one in the forum please forgive me. I've created a database to help track employee passwords for differnt system I placed and Audit Trail on the form (the example from Microsoft) however it updates only the form and not the table and I need it to do both. Please Help!

Thanks

Rand

View 14 Replies View Related

Auto-numbers Are Not In Order For Tables

Nov 21, 2012

My autonumbers are not in order for tables.As in for example for a customer

customerid customer first name customer last name

17 john parker
18 james johnson
19 alex scott

This is right at the top of the table the first sets of data,i want it to be

customerid
1
2
3
4
5
,etc

Why does it have a random number like "17" when I DO NOT have the first 17 customers !

View 6 Replies View Related

Auto-rearranging Column Order In Query

May 10, 2012

Why does access automatically rearrange column order in a query after closing and reopening? Is there a way to stop it? It doesn't affect the usefulness of my query but I set the columns up in a specific order and I'd like them to stay that way. This is an update query. I see that it is grouping them by name. Anyway to stop that without giving each field a unique name? Screenshots attached.

View 1 Replies View Related

General :: Creating Auto-Sequential Order Number

May 6, 2013

I am trying to create an auto-sequential order number

Example : AB000112 - AB is standard prefix, ''0001'' is the first invoice number, ''12'' is the year 2012.

so the next order number should read AB000212 and the next AB000312

Out of this, I have to issue several debit notes relating to the same order number when the payments are due from customers over a period of time, this will be

001AB000112
002AB000112
003AB000112

Can such numbers be the primary key?

View 4 Replies View Related

Auto-Updating Date?

Mar 16, 2005

I was wondering if anyone knows any way to have the date/time field in my database automaticaly update itself to the current date when I change part of the data in that same line.

For instance, if I change the entry for last name, is there anyway to have the date field automaticaly change to the current date without me entering it manualy? Thanks for your time.

View 1 Replies View Related

Auto-updating Name List???pls Help

Nov 25, 2004

I'm creating database that will display about 6000 different names. My question is how can i insert a last name into the last name field, and have the first name of that specific person automaticlly filled in in the field next to it titled, First Name. The answer is probably simple, but i'm as stupid as they get right now. I would like to thank everyone in advance for their help!

Justin Fiorilli

View 3 Replies View Related

Auto Populate Invoice Record With Same Values As Customers Previous Order

Jun 2, 2015

I wanted to auto populate an invoice record with same values as previously ordered by that same customer. I don't want to use default values as every customer orders different things.

BUT almost all customers make REPEAT orders of exactly the same things they ordered previously.

So...for example, can I search the invoice records by customer ID/Name and copy all the data from their previous into a new invoice record. I guess I could do this with an append query?

But will an append query run when I just click on 'new record' in the invoice form? Maybe there is a property '.on new record'...open append query....?

View 1 Replies View Related

URGENT HELP PLEASE! Auto-Updating Field Using A Calculation (Complex)

Aug 8, 2006

Hi, im relatively new to access but my problem is fairly complex.

I'm creating a database for a school project, and it is focused on improving the way a flying club runs.
I have been able to solve most problems myself, but this one truly has stumped me.

The basics:
There are two tables - Instructor Details
- Flight Completion

And one form - Flight Completion

On the instructor details table i have a field called 'Hours Flown'
The purpose of this field is to show the total hours flown by an instructor.
On the flight completion table i have a field called 'Flight Duration'
This field is for the duration of the flight the instructor just flew.

I want it so that when the instructor presses a button on the flight completion form, the duration entered into the 'Flight Duration' field is added to the 'Hours Flown' field and then the 'Hours Flown' field is updated with the new total.

I hope that is clear to you, but if not please let me know and i will try and clarify it for you.

I really do need help.

Thanks
Jared James

View 2 Replies View Related







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