O
owp^3
I have a form whose recordsource is a complex query.
The form populates fine but the status bar in the lower left flashes "this
recordset is not updateable" before it says calculating and form view. I am
unable to type in any of the fields on the form.
I searched this forum for advice and troubleshooting I have read Allen
Browne's page on the subject but i just don't seem to be able to find the
issue.
I have gone back and rebuilt the query in a string and unit fashion to
isolate the component causing the problem and I think I have isolated it but
don't know where to go from here.
This query is updateable:
SELECT select_BUInventoryPV.*, select_LastMRE.MRE_CurrentStatus
FROM select_BUInventoryPV LEFT JOIN select_LastMRE ON
select_BUInventoryPV.ID = select_LastMRE.MRE_ProjectID;
This query is not updateable
SELECT select_BUInventoryPV.*, select_LastUpdatedDPV.BT_Status
FROM select_BUInventoryPV LEFT JOIN select_LastUpdatedDPV ON
select_BUInventoryPV.BU_BT_Portfolio_ID =
select_LastUpdatedDPV.BT_Portfolio_ID;
All of the underlying queries are updateable.
This is the common underlying query
SELECT data_BUInventoryPV.*
FROM data_BUInventoryPV;
Here is the underlying query that bolixes things up
SELECT DPV.BT_Portfolio_ID, DPV.BT_Status, DPV.BT_Type, DPV.BT_Title,
DPV.BT_Description, DPV.BT_BU_Priority, DPV.BT_BU, DPV.BT_BU_Sponsor,
DPV.BT_BU_PM, DPV.BT_Financials, DPV.BT_BU_in_Plan, DPV.BT_BU_Planned_Target,
DPV.BT_Proposal_Received, DPV.BT_Project_Start, DPV.BT_Requirements_Signoff,
DPV.BT_Phase, DPV.BT_Phase_Due, DPV.BT_Committed_Flag, DPV.BT_Target_Install,
DPV.BT_Duration, DPV.BT_PSA_Risk_Category, DPV.BT_Health_Indicator,
DPV.BT_Executive_Status, DPV.BT_Manager, DPV.BT_Director,
DPV.BT_Project_Manager, DPV.BT_PF_BHP, DPV.BT_PF_Capital,
DPV.BT_PF_BT_Cross_Functional, DPV.BT_PF_Production_Assurance,
DPV.BT_Report_Date
FROM data_BTWeeklyPV AS DPV
WHERE (((DPV.BT_Report_Date)=(Select Max(X.BT_Report_Date)
FROM data_BTWeeklyPV as X
Where X.BT_Portfolio_ID=DPV.BT_Portfolio_ID)));
All queries except the last were built in the Query Design view not the SQL
View.
The last appears to work properly in all other cases. The datasheet view
looks correct and is updateable. Forms that use it as their sole record
source are updateable as well.
Is the problem the Aliases? Or the Subquery in the WHERE clause?
I think my work around is to populate another table with the results of the
second query and then query that table as part of my complex query, I will
try that in tomorrow morning. However, I sure would like to know how to
solve the problem with the query itself.
Thanks,
owp^3
The form populates fine but the status bar in the lower left flashes "this
recordset is not updateable" before it says calculating and form view. I am
unable to type in any of the fields on the form.
I searched this forum for advice and troubleshooting I have read Allen
Browne's page on the subject but i just don't seem to be able to find the
issue.
I have gone back and rebuilt the query in a string and unit fashion to
isolate the component causing the problem and I think I have isolated it but
don't know where to go from here.
This query is updateable:
SELECT select_BUInventoryPV.*, select_LastMRE.MRE_CurrentStatus
FROM select_BUInventoryPV LEFT JOIN select_LastMRE ON
select_BUInventoryPV.ID = select_LastMRE.MRE_ProjectID;
This query is not updateable
SELECT select_BUInventoryPV.*, select_LastUpdatedDPV.BT_Status
FROM select_BUInventoryPV LEFT JOIN select_LastUpdatedDPV ON
select_BUInventoryPV.BU_BT_Portfolio_ID =
select_LastUpdatedDPV.BT_Portfolio_ID;
All of the underlying queries are updateable.
This is the common underlying query
SELECT data_BUInventoryPV.*
FROM data_BUInventoryPV;
Here is the underlying query that bolixes things up
SELECT DPV.BT_Portfolio_ID, DPV.BT_Status, DPV.BT_Type, DPV.BT_Title,
DPV.BT_Description, DPV.BT_BU_Priority, DPV.BT_BU, DPV.BT_BU_Sponsor,
DPV.BT_BU_PM, DPV.BT_Financials, DPV.BT_BU_in_Plan, DPV.BT_BU_Planned_Target,
DPV.BT_Proposal_Received, DPV.BT_Project_Start, DPV.BT_Requirements_Signoff,
DPV.BT_Phase, DPV.BT_Phase_Due, DPV.BT_Committed_Flag, DPV.BT_Target_Install,
DPV.BT_Duration, DPV.BT_PSA_Risk_Category, DPV.BT_Health_Indicator,
DPV.BT_Executive_Status, DPV.BT_Manager, DPV.BT_Director,
DPV.BT_Project_Manager, DPV.BT_PF_BHP, DPV.BT_PF_Capital,
DPV.BT_PF_BT_Cross_Functional, DPV.BT_PF_Production_Assurance,
DPV.BT_Report_Date
FROM data_BTWeeklyPV AS DPV
WHERE (((DPV.BT_Report_Date)=(Select Max(X.BT_Report_Date)
FROM data_BTWeeklyPV as X
Where X.BT_Portfolio_ID=DPV.BT_Portfolio_ID)));
All queries except the last were built in the Query Design view not the SQL
View.
The last appears to work properly in all other cases. The datasheet view
looks correct and is updateable. Forms that use it as their sole record
source are updateable as well.
Is the problem the Aliases? Or the Subquery in the WHERE clause?
I think my work around is to populate another table with the results of the
second query and then query that table as part of my complex query, I will
try that in tomorrow morning. However, I sure would like to know how to
solve the problem with the query itself.
Thanks,
owp^3