A
Access Newbee Dave
I am trying to put together a database that will collect nonconformance
data, analyze the data, and generate reports.
This database currently is set up with 4 tables:
[Table1]
The main table contains records that would be used to collect and record a
unique nonconformance. I have an autonumber field as the unique identifier
for the record. A key report (Nonconformance Report) would allow the user to
print out everything collected up to the current time for this record.
[TableFailureType]
Includes 2 fields;
“Type_ID†(Autonumber – Primary Key)
"Failure_Type" (Text – Electrical, Mechanical, Optical)
[TableFailureMode]
Includes 3 fields
“Mode_ID†(Autonumber – Primary Key)
"Failure_Mode" (Text - Resistor, Capacitor, etc... (a sub-category of
failure type))
“Type_ID†(Number)
[TableFailureSubMode]
Includes 3 fields
“SubMode_ID†(Autonumber – Primary Key)
"Failure_SubMode" (Text - Resistor, Capacitor, etc... (a sub-category of
failure type))
“Mode_ID†(Number)
I have been able to design a basic form [Form1] where I can enter data into
[Table1]. I also have combo boxes that can select the data from the other
smaller tables and place the result into [Table1]. I would like to have these
combo boxes select an item (i.e. Electrical) from the "TableFailureType"
table and have it only display those "Failure_Mode" items from
[TableFailureMode] that are associated to the “Electrical"
"TableFailureType". From there I would like to use the [Failure_Submode]
combo box and only have those submodes displayed that are associated to the
selected failure mode. The result should be placed in the appropriate field
of the record from [Table1] so they can be used in reports.
I have tried to follow the instructions to set up a combo box based on the
results of a second box from...
http://office.microsoft.com/en-us/access/HA011730581033.aspx?pid=CL100
I have also reviewed a number of other posts in the Access forums. So far I
am lost.
Looking at just the combo box tied to the FailureMode I have the following
entered in the rowsource field:
"SELECT TableFailureMode.Mode_ID, TableFailureMode.Failure_Mode
FROM TableFailureMode
WHERE (((TableFailureMode.Type_ID)= Forms![Form1]!Failure_Type))
ORDER BY TableFailureMode.Failure_Mode;"
When I try to use the form I receive the following error message:
The record source “~sq_cForm1~sq_cFailureMode†specified on this form or
report does not exist.
At the current time I am not sure if I have the tables set up properly. I am
also not sure how to set up the relationships. Any help would be appreciated.
Thanks in advance
Dave
data, analyze the data, and generate reports.
This database currently is set up with 4 tables:
[Table1]
The main table contains records that would be used to collect and record a
unique nonconformance. I have an autonumber field as the unique identifier
for the record. A key report (Nonconformance Report) would allow the user to
print out everything collected up to the current time for this record.
[TableFailureType]
Includes 2 fields;
“Type_ID†(Autonumber – Primary Key)
"Failure_Type" (Text – Electrical, Mechanical, Optical)
[TableFailureMode]
Includes 3 fields
“Mode_ID†(Autonumber – Primary Key)
"Failure_Mode" (Text - Resistor, Capacitor, etc... (a sub-category of
failure type))
“Type_ID†(Number)
[TableFailureSubMode]
Includes 3 fields
“SubMode_ID†(Autonumber – Primary Key)
"Failure_SubMode" (Text - Resistor, Capacitor, etc... (a sub-category of
failure type))
“Mode_ID†(Number)
I have been able to design a basic form [Form1] where I can enter data into
[Table1]. I also have combo boxes that can select the data from the other
smaller tables and place the result into [Table1]. I would like to have these
combo boxes select an item (i.e. Electrical) from the "TableFailureType"
table and have it only display those "Failure_Mode" items from
[TableFailureMode] that are associated to the “Electrical"
"TableFailureType". From there I would like to use the [Failure_Submode]
combo box and only have those submodes displayed that are associated to the
selected failure mode. The result should be placed in the appropriate field
of the record from [Table1] so they can be used in reports.
I have tried to follow the instructions to set up a combo box based on the
results of a second box from...
http://office.microsoft.com/en-us/access/HA011730581033.aspx?pid=CL100
I have also reviewed a number of other posts in the Access forums. So far I
am lost.
Looking at just the combo box tied to the FailureMode I have the following
entered in the rowsource field:
"SELECT TableFailureMode.Mode_ID, TableFailureMode.Failure_Mode
FROM TableFailureMode
WHERE (((TableFailureMode.Type_ID)= Forms![Form1]!Failure_Type))
ORDER BY TableFailureMode.Failure_Mode;"
When I try to use the form I receive the following error message:
The record source “~sq_cForm1~sq_cFailureMode†specified on this form or
report does not exist.
At the current time I am not sure if I have the tables set up properly. I am
also not sure how to set up the relationships. Any help would be appreciated.
Thanks in advance
Dave