473,396 Members | 1,968 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,396 software developers and data experts.

Automatic Population of a Field

Hello,

Sorry about the length of this explanation!

I am using Access 2000 to assist an export sales department keep track of
its weekly offers of products to clients. The database already keeps track
of "product offers" and prepares a report that a group of Clients can
receive by email or fax each week. The challenge is that not all clients
are interested in all the "items" on the product offers (more than 200 items
listed). While some clients would like to know about Item1, Item2 offers
others only would want to hear about Item10 and 12, still others may indeed
want the totality of all ItemsOffered. I am looking for a way to prepare
client-specific reports listing only those Items that the particular client
is interested in. Client interests in items don't change, they always are
looking for specific items. The Sales department may add items to their
offers (by adding an Item to "tblItems") from time to time.

Solution: I have created an additional field in the tblClients table
(OfferPreferences). This field is linked to a SUBTABLE
(tblOfferPreferences) containing four fields: tblOfferPreferencesID,
ClientID (same as tblClientsID, unique identifier), ItemID and Email (a
logical variable, YEs/No). I then proceed to manually populate the ItemID
field by picking one of the 200 items from the tblItems (a table containing
data about items that the company produces or carries). I repeat the
process until I have picked all 200 items in the Items table. The problem
is that there are many clients and manually entering all items from the
tblItems table is quite time-consuming. Moreover, if the sales deaprtment
adds an item to the tblItems after the OfferPreferences have already been
set for a client, they must also remember to go back to each ClientID (in
the tblClients) and be sure to add that new item to the subset of Client
(OfferPreferences) and then to check off the logical variable (Yes/No) if
that particular client will likely want to receive offers for this new item
in the future. Then they have to repeat this process for every client in
the tblClients.

Is there an easier way to do this? Perhaps with an Update query? I want to
be able to automatically populate the field ItemID based on the existing
items listed in a separate table. Each new client should automatically have
a subset of items linked to ClientID. The logical variable Yes/No should
then be checked off for all those items that the client would want to
receive by email. I would use a form to update this information
periodically and a query linking weekly offers by the sales department with
the client preferences just defined.

Any ideas?

Thank you in advance!!!

René M. Crespo
Export Manager
Uni-Viande Inc
Quebec, Canada
re*********@bellnet.ca
ve****@uni-viande.com

Nov 12 '05 #1
1 3723
I am a little confused with your current setup of tblOfferPreferences
and addition of the field OfferPreferences to tblClients.
It seems to me that all you need is a junction table between tblClients
and tblItems, having 2 fields - ClientID and ItemID, their combination
serving as PK. If a client wants an item, add a record with ClientID,
ItemID to the junction table. Then you can pull out the needed items
easily in SQL.
Updating the junction table is very easy using a subform.
As far as automating this, I see no way - how will the automation know
what each client wants? Also, as new items are added, do you want the
new item to be offered to every client or not? Either way you can easily
automate the update to the junction table, but you can't make the DB
discriminate the addition - say, one client gets new item while another
does not.

Pavel

Rene Crespo wrote:

Hello,

Sorry about the length of this explanation!

I am using Access 2000 to assist an export sales department keep track of
its weekly offers of products to clients. The database already keeps track
of "product offers" and prepares a report that a group of Clients can
receive by email or fax each week. The challenge is that not all clients
are interested in all the "items" on the product offers (more than 200 items
listed). While some clients would like to know about Item1, Item2 offers
others only would want to hear about Item10 and 12, still others may indeed
want the totality of all ItemsOffered. I am looking for a way to prepare
client-specific reports listing only those Items that the particular client
is interested in. Client interests in items don't change, they always are
looking for specific items. The Sales department may add items to their
offers (by adding an Item to "tblItems") from time to time.

Solution: I have created an additional field in the tblClients table
(OfferPreferences). This field is linked to a SUBTABLE
(tblOfferPreferences) containing four fields: tblOfferPreferencesID,
ClientID (same as tblClientsID, unique identifier), ItemID and Email (a
logical variable, YEs/No). I then proceed to manually populate the ItemID
field by picking one of the 200 items from the tblItems (a table containing
data about items that the company produces or carries). I repeat the
process until I have picked all 200 items in the Items table. The problem
is that there are many clients and manually entering all items from the
tblItems table is quite time-consuming. Moreover, if the sales deaprtment
adds an item to the tblItems after the OfferPreferences have already been
set for a client, they must also remember to go back to each ClientID (in
the tblClients) and be sure to add that new item to the subset of Client
(OfferPreferences) and then to check off the logical variable (Yes/No) if
that particular client will likely want to receive offers for this new item
in the future. Then they have to repeat this process for every client in
the tblClients.

Is there an easier way to do this? Perhaps with an Update query? I want to
be able to automatically populate the field ItemID based on the existing
items listed in a separate table. Each new client should automatically have
a subset of items linked to ClientID. The logical variable Yes/No should
then be checked off for all those items that the client would want to
receive by email. I would use a form to update this information
periodically and a query linking weekly offers by the sales department with
the client preferences just defined.

Any ideas?

Thank you in advance!!!

René M. Crespo
Export Manager
Uni-Viande Inc
Quebec, Canada
re*********@bellnet.ca
ve****@uni-viande.com

Nov 12 '05 #2

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

Similar topics

46
by: Kingdom | last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off - type B I have 12 off etc. I'm using Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM Parts_Table") ...
0
by: Megan | last post by:
Data Comparison: Sample Versus Rest of Population. I have a population of data, and I want to take a sample of that population and compare it against the entire population. I have a database...
4
by: morydd | last post by:
I've got a budgeting database, and when entering expenses, the user has an option of payment type (credit card, cash, PO) if the user selects PO, they have to enter the PO number from a drop down....
1
by: Michel Esber | last post by:
Hello, Linux RedHat AS4 running DB2 V8 FP11. I have followed the docs at http://tinyurl.com/qckrn and enabled automatic statistics collection. It has been 2 days since I updated my DB cfg and...
0
by: robert | last post by:
I'm looking for an efficient optimizer on a noisy high-dimensional and costly function. My own GA hack seems to be somewhat stiff and I find me trying too much around with different cooling speeds...
14
by: neonman14 | last post by:
Hello I am in Intro to Java Programming and I am having problems with assignment. The Homework assignment is called Population. Population Write a program that will predict the size of a...
4
by: Joerg Battermann | last post by:
Hello there, does anyone know the precise naming conventions used for internal backing fields for automatic properties? Something official besides looking at the compiled assemblies that might...
1
by: Clive Swan | last post by:
Hi I am trying to sum a population field that may have 140 records for each Ward (example). Any suggestions on the best way to do this. I would like to have a unique record for each Ward...
1
by: tg | last post by:
http://img522.imageshack.us/img522/8647/scan10005ci7.jpg As a percentage of world inhabitants, the white population will plummet to a single digit (9.76%) by 2060 from a high-water mark of...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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
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
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,...

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.