473,769 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
(OfferPreferenc es). This field is linked to a SUBTABLE
(tblOfferPrefer ences) containing four fields: tblOfferPrefere ncesID,
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 OfferPreference s 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
(OfferPreferenc es) 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*********@bel lnet.ca
ve****@uni-viande.com

Nov 12 '05 #1
1 3739
I am a little confused with your current setup of tblOfferPrefere nces
and addition of the field OfferPreference s 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
(OfferPreferenc es). This field is linked to a SUBTABLE
(tblOfferPrefer ences) containing four fields: tblOfferPrefere ncesID,
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 OfferPreference s 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
(OfferPreferenc es) 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*********@bel lnet.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
5142
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") to populate a drop down but would like to use several drop downs restricting the contents of each drop down to the records pertaining to one
0
3741
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 that records information about the types of Rulings a person receives. Each person works for an agency, and there are 12 agencies (see example below). Each person receives a ruling, and there are 2 types of rulings,
4
1860
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. Since PO's are assigned to a specific supplier, I'd like the supplier field (currently a drop-down) to be automatically populated when the PO number is selected. But that field need to be filled manually for credit card or cash purchases. Any...
1
4051
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 I don´t see any activity regarding auto runstats. Also, the field STATS_TIME from syscat.tables shows that all my table statistics were last collected in March. What am I missing here ? Is
0
1410
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 and other non-systematic screwing ... There are some GA frameworks and recipes around for Python (that one of scipy (scipy.ga?) disapeared?). Which can be recommended? The searching in my use cases is mainly on fixed length parameter vectors...
14
16844
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 population of organisms. The program should ask for the starting number of organisms, their average daily population increase (as a percentage), and the number of days they will multiply. For example, a population might begin with two organisms, have an...
4
3825
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 let you 'assume' a certain schema... Cheers and thanks, -jB
1
1993
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 with all the records summed.
1
4669
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 27.98% in 1950. The big population story of the 21st Century is shaping up to be the status reversal of whites and blacks and the Indian baby boom. A side bar will be the single digit minority role that whites will assume. Of the 7 population groups...
0
10199
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...
1
9979
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
9849
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
8861
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...
1
7393
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6661
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
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.