X
xoxavier
[email protected] said:The query is not updatable on its own. the form text boxes are bound
to fields named the same as tblDowntime however, they have a "T." in
fornt i.e. "T.Plant"...You're doing great Marsh, I'm learning a lot
from this and your coaching me through it well...
Bleep, bleep, bleep...
Well, there's no telling when Jet decides it won't be able
to update a table's values. I've seen queries with 7 Joins
that were updatable while another with only 3 joins was not.
Question: Is it feasible to change the LEFT JOIN to INNER
JOIN? That would mean that all current and future records
must have all fourcombobox filled in (not something I
would want to do).
Another thing to try is to include the PK field from every
table.
While you're at it, let's change the names of the fields
that are bound to the four text boxes. I don't know what
you did to make the query run so double check this against
what you are now using:
SELECT T.*,
tblPlant.[Plant ID] As [XPlant ID], tblPlant.Plant As
XPlant,
PP.[Process ID] As [XProcess ID], PP.Process As XProcess,
E.[Equipment ID] As [XEquipment ID], E.Equipment As
XEquipment,
ERR.[Error ID] As [XError ID], ERR.[Error Code] As [XError
Code]
FROM (((tblDowntime AS T
LEFT JOIN tblPlant
ON T.Plant = tblPlant.[Plant ID])
LEFT JOIN [tblPlant/Process] AS PP
ON T.Process = PP.[Process ID])
LEFT JOIN [tblProcess/Equipment] AS E
ON T.Equipment = E.[Equipment ID])
LEFT JOIN [tblEquip/Error] AS ERR
ON T.[Error Code] = ERR.[Error ID]
If that is upadable, don't forget to change the four text
box's bound field to the new names before testing the form.
(I don't think you need text boxes bound to the PK fields,
but that would be another thing to try out of desperation.
I copied what you have posted and changed the JOINs to INNER JOIN.
That actually works out better for me becasue all four fields do need
to be filled. The query runs but is still not updatable