T
thebigmac
I’m creating a database to keep track of various options and components but I
am having trouble with some areas of the database development.
The manufacturer I work with creates a product which I shall call a WIDGET.
Each Widget is serialized with a unique number (a primary key). Each Widget
can also be customized with a variety of options the manufacturer makes
available to the client. Thus each Widget is unique but can have many options.
The options are divided into SETS. Example: one set covers the kitchen,
another set the garage, still another the bathrooms. Each option set is
identified by a unique number set and each option by a unique number, such as
the kitchen is identified by the 10000 series numbers (10000-10999). The
garage by the 11000 series (11000-11999). The bathrooms by the 12000 series
(12000-12999) and so forth. (Example: a towel rack would be 12031, a stove
10056.)
The original option set was created in Excel which I imported into Access. It
is a table with the Option number being the primary key. Using this table I
set up a query for each numbered set, hence "dividing" the original file into
many smaller files; one for the kitchen, one for the garage and so forth.
This works well and I am pleased with the results. (My original thought was
to use these queries in the database but with all the trouble I am having I
may not be able to.)
My database is built around the unique Widget number. Knowing that each
Widget is unique but can have many options I set out to create a series of
forms that reflect the unique Widget number but allows me to select
individual options (one Widget, numerous options).
It doesn’t work. I cannot get my form, my queries, or tables to recognize one
Widget with numerous options. I am able to pull up either the Widget number
or the Option number but not both, which is what I need to do. When I do get
both I cannot pull in the Widget number assigning one Widget to the Options
available. Most distressing. The blasted thing won't do what I want it to do!
What I have done:
I established a Widget primary key in the OPTIONS table. No good. Access will
not allow me to create the key. I get the message that the key field cannot
contain a null value. Makes sense as the table is already populated.
I created a query to connect the Widget primary key to a field in the Options
table (original Options table not the individual queries, but I did that too).
I added and deleted fields, created queries, established and reset primary
keys, created relationships (all types), joined the tables and queries on
different fields, everything I can possible think of but to no avail. I
cannot get the database to recognize one Widget – numerous options.
What I want the database to do is display all the options in a subform
allowing me to select an option using a SELECT (yes/no) field. The option(s)
would then be applicable to that unique Widget number. When I finish with
Widget 001 I select the next Widget number, 002, and repeat the process. Thus
each of my widgets is customized with its related options. I can then print
out a report by filtering on the YES field (haven’t got that far yet, first I
need to get this thing to work).
I am hoping somebody in this list can tell me where I am going wrong. It is
very frustrating yet seems so simple. There has to be a simple solution but
for three days it has eluded me. Assistance please.
am having trouble with some areas of the database development.
The manufacturer I work with creates a product which I shall call a WIDGET.
Each Widget is serialized with a unique number (a primary key). Each Widget
can also be customized with a variety of options the manufacturer makes
available to the client. Thus each Widget is unique but can have many options.
The options are divided into SETS. Example: one set covers the kitchen,
another set the garage, still another the bathrooms. Each option set is
identified by a unique number set and each option by a unique number, such as
the kitchen is identified by the 10000 series numbers (10000-10999). The
garage by the 11000 series (11000-11999). The bathrooms by the 12000 series
(12000-12999) and so forth. (Example: a towel rack would be 12031, a stove
10056.)
The original option set was created in Excel which I imported into Access. It
is a table with the Option number being the primary key. Using this table I
set up a query for each numbered set, hence "dividing" the original file into
many smaller files; one for the kitchen, one for the garage and so forth.
This works well and I am pleased with the results. (My original thought was
to use these queries in the database but with all the trouble I am having I
may not be able to.)
My database is built around the unique Widget number. Knowing that each
Widget is unique but can have many options I set out to create a series of
forms that reflect the unique Widget number but allows me to select
individual options (one Widget, numerous options).
It doesn’t work. I cannot get my form, my queries, or tables to recognize one
Widget with numerous options. I am able to pull up either the Widget number
or the Option number but not both, which is what I need to do. When I do get
both I cannot pull in the Widget number assigning one Widget to the Options
available. Most distressing. The blasted thing won't do what I want it to do!
What I have done:
I established a Widget primary key in the OPTIONS table. No good. Access will
not allow me to create the key. I get the message that the key field cannot
contain a null value. Makes sense as the table is already populated.
I created a query to connect the Widget primary key to a field in the Options
table (original Options table not the individual queries, but I did that too).
I added and deleted fields, created queries, established and reset primary
keys, created relationships (all types), joined the tables and queries on
different fields, everything I can possible think of but to no avail. I
cannot get the database to recognize one Widget – numerous options.
What I want the database to do is display all the options in a subform
allowing me to select an option using a SELECT (yes/no) field. The option(s)
would then be applicable to that unique Widget number. When I finish with
Widget 001 I select the next Widget number, 002, and repeat the process. Thus
each of my widgets is customized with its related options. I can then print
out a report by filtering on the YES field (haven’t got that far yet, first I
need to get this thing to work).
I am hoping somebody in this list can tell me where I am going wrong. It is
very frustrating yet seems so simple. There has to be a simple solution but
for three days it has eluded me. Assistance please.