I have been working on a form which is based on a query which joins a few tables. It has been working as expected including having the ability to modify the underlying data using the form.
I have made a change to the query by joining another query to it which allows the addition of a single new calculated field. The new query works correctly and displays the correct data, however I am now unable to modify the underlying data as I was before.
I have checked that it is not a fault of the form as I can open up the query directly and cannot modify the underlying data, however if I remove the join to the second query i am able to modify the data again.
A very abridged version of my query follows:
SELECT tblMembers.M_Code,
tblMembers.M_Surname,
tblEquipment.STRAP,
tblEquipment.OTHER,
qryLOA.LOA
etc. etc.
FROM (((tblMembers
LEFT JOIN tblMember_Cats ON tblMembers.M_Member_Type = tblMember_Cats.Ca_ID)
LEFT JOIN tblEquipment ON tblMembers.M_Code = tblEquipment.MEMBERSHIP_CODE
LEFT JOIN qryLOA ON tblMembers.M_Code = qryLOA.M_Code)
WHERE (((tblMembers.M_Date_Left) Is Null))
Can anyone explain why joining to the second query prevents my ability to modify the data in the query? I can understand that the calculated data in the subquery could not be modified, but why not the other fields?
I would really appreciate some assistance on this one.
I suspect including the second query as a subquery within the first query may help, however it is complex with groupings and sums and I am unsure how I might do it - or even if it is the problem.
I have made a change to the query by joining another query to it which allows the addition of a single new calculated field. The new query works correctly and displays the correct data, however I am now unable to modify the underlying data as I was before.
I have checked that it is not a fault of the form as I can open up the query directly and cannot modify the underlying data, however if I remove the join to the second query i am able to modify the data again.
A very abridged version of my query follows:
SELECT tblMembers.M_Code,
tblMembers.M_Surname,
tblEquipment.STRAP,
tblEquipment.OTHER,
qryLOA.LOA
etc. etc.
FROM (((tblMembers
LEFT JOIN tblMember_Cats ON tblMembers.M_Member_Type = tblMember_Cats.Ca_ID)
LEFT JOIN tblEquipment ON tblMembers.M_Code = tblEquipment.MEMBERSHIP_CODE
LEFT JOIN qryLOA ON tblMembers.M_Code = qryLOA.M_Code)
WHERE (((tblMembers.M_Date_Left) Is Null))
Can anyone explain why joining to the second query prevents my ability to modify the data in the query? I can understand that the calculated data in the subquery could not be modified, but why not the other fields?
I would really appreciate some assistance on this one.
I suspect including the second query as a subquery within the first query may help, however it is complex with groupings and sums and I am unsure how I might do it - or even if it is the problem.
Attachments
Last edited: