473,508 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table normalizing help/suggestion

Hi!

Our database, an inventory/order system in ms access 2000, is working
just fine.

However, the other day, one of our employees suggested that it should
be possible to do some advanced work on the tblCustomer.

What he suggested was: Could there be possible to choose a customer, on
creating a new order from frmOrder, and automatically have an orderline
be filled out with a preset item, from tblItems, in frmOrderdetails?

As for now, we use the traditional ordersystem like:

tblCustomers -> tblOrders -> tblOrderdetails <- tblItems

and when choosing a customer, we have to fill in each orderline the
customer order.

We have been looking at having a field in tblCustomers that gets its
data from tblItems, or a subtable to tblCustomer that register preset
data from tblItems, but will not this create redundancies or other
problems?

So, if anybody have a clever idea how this is to be achieved, if
possible at all, please suggest.

Me.Name

Nov 13 '05 #1
3 1155
The answer would depend on your business systems.

If there are current items that tend to be on most orders at the moment, and
you want to default all new orders to include that item you could add the
items to a OrderDetailDefaultItem table. Any items in that table would then
be added to the order by executing an INSERT query statement in the
AfterInsert event of the Order form.

Alternatively, if each customer has particular items they usually order
(specific to them), you could create a CustomerDefaultItem table. Using the
same event, you append any records for the customer.

There is no redundancy in setting up default items. But if you wanted to get
really smart, you could possibly automate this instead of setting up the
extra tables. This would involve some fuzzy logic that looks back over
recent orders to see what everyone is ordering (or back at recent orders for
this customer to see what she is always ordering), and if items meet a
threshold (e.g. 75% of orders in the period have the item), then append it
to the order as a default item.

However, before you program anything where the software is trying to be too
smart, consider the possible side effects. Is it likely that some data entry
person will not notice the item(s) the computer put into the order
automatically, and you will have customers complaining that they were sent
and charged for things they did not order?

Ultimately, it is your business logic that will dictate whether this is a
good idea or a bad idea.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<gs***@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...

Our database, an inventory/order system in ms access 2000, is working
just fine.

However, the other day, one of our employees suggested that it should
be possible to do some advanced work on the tblCustomer.

What he suggested was: Could there be possible to choose a customer, on
creating a new order from frmOrder, and automatically have an orderline
be filled out with a preset item, from tblItems, in frmOrderdetails?

As for now, we use the traditional ordersystem like:

tblCustomers -> tblOrders -> tblOrderdetails <- tblItems

and when choosing a customer, we have to fill in each orderline the
customer order.

We have been looking at having a field in tblCustomers that gets its
data from tblItems, or a subtable to tblCustomer that register preset
data from tblItems, but will not this create redundancies or other
problems?

So, if anybody have a clever idea how this is to be achieved, if
possible at all, please suggest.

Me.Name

Nov 13 '05 #2
Hi!

Thanks Allen.

As always you point me in the right direction.

I think the first part of your answer is what really meet our business
logic. I'll have a go and see where I'll land.

Me.Name

Nov 13 '05 #3
Great.

(BTW, you will probably have to Requery the subform after executing the
Append query before the items show in the subform.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<gs***@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...

Thanks Allen.

As always you point me in the right direction.

I think the first part of your answer is what really meet our business
logic. I'll have a go and see where I'll land.

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
598
by: Evan Escently | last post by:
Hi, I've laid out a _very_ simple database that tracks my artwork the table 'works' looks like: +---------+----------+------------+------------+-------------+ | work_id | title | media ...
2
1398
by: John | last post by:
I'm trying to normalize my database the best I can this time around and I'm running into some trouble. I've been avoid normalizing for a long time now because while I know how to normalize, I'm...
4
1413
by: John.Arthur | last post by:
Hi, I am writing a small dating site and now I am designing the DB. At some point I realized that I will need to create a table with more than 12 columns and I felt that it is not such a good...
11
14387
by: Bobbak | last post by:
Hello All, I have these tables (lets call it ‘EmpCalls', ‘EmpOrders', and ‘Stats') that each contain the list of EmployeeIDs, I want to be able to create a Module in which I could call in my VB...
2
2776
by: Richard Williamson | last post by:
Hi all, I have a problem designing the tables for a leasgue table calculating database. The current structure is this (irrelavent bits omitted) tabTeam(TeamID, TeamName) ------ ...
3
4891
by: Raj | last post by:
Hi, I am trying to add some more information to the table which already has a lot a data (like 2-3000 records). The new information may be adding 2-3 new columns worth. Now my questions are:...
5
1528
by: sck10 | last post by:
Hello, I need to create a Business Rules table that can be pulled into the web page and use it as criteria for who should receive the approval email. For example, I have created a travel...
4
1313
by: Takeadoe | last post by:
Dear NGs, I recently downloaded and read a bunch of material on normalizing your data and db design. Things aren't crystal clear yet! Part of the problem is that nearly every thing I read...
17
3555
by: Stubert | last post by:
I have a training module db that stores information about employees and what training they have carried our or need to carry out. One table in this database stores what training needs to be carried...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.