473,661 Members | 2,522 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 1166
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 OrderDetailDefa ultItem 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 CustomerDefault Item 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.goo glegroups.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******** *************@f 14g2000cwb.goog legroups.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 | category | year | etc.... +---------+----------+------------+------------+-------------+ | 1 | One | oil | painting | 2002 | +---------+----------+------------+------------+-------------+
2
1407
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 weak on SQL strings so populating the database is a pain in the kee... but this is another story... ok, first of all is this a many to many or no? projMain (table) projID (PK) clientID (FK)
4
1423
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 idea. I've tried normalizing the database, but It was with no effect. So let's sat that I have the following table: CREATE TABLE users
11
14400
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 form (by clicking and command button)that will add a column (field) to each table and label it with the current date that is specified in my form. Does anyone know how I can go about doing this? Any suggestion will be greatly appreciated.
2
2793
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) ------ tabPlayer(PlayerID, TeamID) --------
3
4902
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: (1)Is it a good idea to add new columns to the existing table? then it will create these new columns for all old records, will it not result in wasting a lot of space?? (2)Is it a good idea to create a new table with the new information and have as a...
5
1534
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 request form that ask a series of questions: TravelType: Domestic or International VisitType: (Customer, Internal Meeting, Seminar) TravelCost
4
1325
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 used the same customer invoice data as an example. I'm dealing with deer harvest data that will never need updating (unlike customer data!). One nagging question that I have deals with the 1NF and non-repeating groups. At least to me it seems...
17
3572
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 based on a job title. So if a cleaner joins the company we know that they need the sweeping up training and the mopping up training. I wasn't sure how to store this information but this is what i came up with and as you will see i have hit a...
0
8855
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8758
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7364
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4346
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1986
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.