F
fish
I have one combo box that requeries another, the problem
is that the other box shows duplicates in it. How do I fix
this?
is that the other box shows duplicates in it. How do I fix
this?
fish said:That is how I have the table set up, I have four actual
tables with the id and a field with the information
entered once. Everytning else is simply id's in the table
that has the relations.
I don't know if the problem I'm having is in the query,
for the combo on the form. I tried not to mention too much
detail with the first post, cuz I was unsure about how to
explain what I had, but you seem to understand what I have
so far.
Here is the query I'm using on the second combo, maybe you
could help me understand where the problem is?
SELECT tblSpecific.id, tblSpecific.grpSpecific, tblCode.id
FROM tblSpecific INNER JOIN (tblCode RIGHT JOIN tblDetails
ON tblCode.id = tblDetails.grpCODES) ON tblSpecific.id =
tblDetails.grpSPECIFICS
WHERE (((tblCode.id) Like [forms]![frmOccRep]![cboCode]))
ORDER BY tblSpecific.grpSpecific;
Should I not have the relationship in the query? and if
not, what would you suggest?
Without it, all I had was numbers in the combos.
-----Original Message-----
If I understand you correctly, you want to have four combo boxes on a form,
with the first being a filter for the second, the first and second being a
filter for the third, and the first three being a filter for the fourth?
If this is correct, see The ACCESS Web for info on how to make one combo box
depend upon another for its filter:
http://www.mvps.org/access/forms/frm0028.htm
Your table structure appears to be unnormalized in some respects. Typically,
you would not repeat Blade Strike as a text phrase in each record. Instead,
you'd create a table that holds the type of accident and assign numbers to
each type, and then use the number in the first table's field (linking the
two together).
For example:
tblAccident
AccidentID
AccidentTypeID
FirstDetailID
FineDetailID
tblAccidentType
AccidentTypeID
AccidentTypeDescription
tblFirstDetail
FirstDetailID
FirstDetailDescription
tblFineDetail
FineDetailID
FineDetailDescription
etc.
This way, if you ever change the description, all tables will get the same
description; you won't need to make the change in many records.
--
Ken Snell
<MS ACCESS MVP>
.