473,382 Members | 1,225 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Normalisation Related

22
This is a very interesting thread.

How about this for a question:

I have a quotation form with what could be 100 small components, labour, delivery etc.

If I get the order I want to pass the sum of the three categories (Components, labour and delivery) to an Order Confirmation Form. I don't want all 100 small parts etc. to go to the Order Confirmation form.

I do want a simple button to it though. I was planning to use a VBA append (INSERT INTO),

Is this a terrible idea (even assuming I could work out how to pass the calculated figure? Or is there a better way
Feb 3 '10 #1
4 1218
Stewart Ross
2,545 Expert Mod 2GB
Hi Hulm1. You may be confusing what you do with the order data once you've got it with how derived data is stored. There is simply no need to store totals separately if you wish to prepare a summary confirmation of an order.

As previously discussed, the individual order lines will contain a unit price, tax rate, quantity and so on. If the tables you use are stuctured correctly for your needs you already have all the detail needed to prepare an order confirmation at any level of detail that suits you.

A report based on a suitable order line query can be used for the purpose you describe - for example by leaving out the detail section and placing group totals in a section footer to aggregate the order lines, tax elements and so on. Or, you could prepare a totals query which sums the individual order lines for you. In any event, there is no need to use a redundant INSERT INTO approach to store such totals in another table, unless in your particular case you would need to record such details because of circumstances such as exchange rate variations etc.

What you would require on a user form somewhere is a command button whose on-click event starts a specific order confirmation report as I have suggested, filtered for the current order. The Access command button wizards will even do this last step for you.

There are many good examples of such approaches in books and elsewhere, including in the sample Northwind database supplied with Access.

-Stewart
Feb 3 '10 #2
Hulm1
22
I do have exchange rate issues. Euro and Dollar against our costs mainly but occasionally our sales. What would be the best approach? Mine or another
Feb 3 '10 #3
nico5038
3,080 Expert 2GB
If I get the order I want to pass the sum of the three categories (Components, labour and delivery) to an Order Confirmation Form. I don't want all 100 small parts etc. to go to the Order Confirmation form.
For this a Group By query can be used. Just make sure the [Category] field is in your detailed order line info. So no need to store these intermediate subtotals.

A different "problem" is the exchange rate. As they can differ, the actual order price needs to be calculated, or stored.
The real "normalized" solution is to have an exchangerate table with a date start/end of the rate. Using the Orderdate the exchangerate can be obtained and the price calculated.
The "not normalized" solution is to have one exchange rate field that's used at the moment the order is finalized and the foreign price is stored.

The choice is yours.

Nic;o)
Feb 3 '10 #4
NeoPa
32,556 Expert Mod 16PB
@Hulm1
Indeed, but not yours, which makes this diversion a hijack. Please refrain from this in future. If you have a question, feel free to post it in it's own thread. If you feel it relates to another thread then by all means include a link to the other thread in your own question. What you may not do is hijack it.

For the interest of any other parties, this question was split away from (and may have some relevance to) Is it possible to append the result of a calculated text box on a form to a table.
Feb 4 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Michael Lauzon | last post by:
Database Normalisation Advisor Designated Contact: thox, xpl2 Status: Open Open Date: 2004-10-26 11:53 For Project: Lands of Myths & Legends (http://sourceforge.net/projects/lamyle/) Long...
1
by: Michael Lauzon | last post by:
Database Normalisation Advisor Designated Contact: thox, xpl2 Status: Open Open Date: 2004-10-26 11:53 For Project: Lands of Myths & Legends (http://sourceforge.net/projects/lamyle/) Long...
0
by: Michael Lauzon | last post by:
Database Normalisation Advisor Designated Contact: thox, xpl2 Status: Open Open Date: 2004-10-26 11:53 For Project: Lands of Myths & Legends (http://sourceforge.net/projects/lamyle/) Long...
2
by: James W. | last post by:
Hi everyone, I would like to ask you lot if you know of a great place on the internet for a fool proof idiots guide to Normalisation 1st, 2nd, 3rd. I looked at webopedia but that is just as...
11
by: Michael Thomas | last post by:
Hi everyone Not sure if this is the right newsgroup to be posting to for this question, but I am using Access 2002 to develop a database solution for the company that I work for. It's basically...
3
by: Macbane | last post by:
Hello All, This has been bugging me for too long. I have a database that records medical interventions. I am familiar with the theory behind normalisation but am unsure what to do with the...
0
by: pdm | last post by:
hey, I have a relational design question. In the first requierement I got a table and a lookup reference field that set the of the contact. eg .
1
by: shauna | last post by:
hi, i am an As level student studying Applied ICT, im having problems with normalisation. our problem is to computerise a made up business.mine for example is a beauty salon. below are my...
2
by: hiyamwah | last post by:
Hi i am a little unsure of how you do this problem: A company wishes to allocate staff to a new project that as been proposed by the company. As a result, a new relation was created for this...
2
mikek12004
by: mikek12004 | last post by:
I have a table for categories (id->the primary key, and name) and I want to add another column parent (one category might be inside another) with the id's range of values so in fact parent will be a...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.