2
DB全体がクラッシュするクエリがあります。それはうまく動作します(そして速く)、SQLビューで開くことができますが、デザインビューをクリックすると、「MS Accessが動作を停止しました.Windowsが解決策をチェックしています」などのエラーメッセージが表示されます。デザインビューでクエリを開くと、MS Accessがクラッシュし続ける
SQLコード:
SELECT
dbo_job.job_date AS Job_Date,
dbo_job.item AS FG,
dbo_job.job AS Job,
dbo_job.suffix AS Suffix,
dbo_job.qty_complete AS SL_Production,
"" AS SAP_Production,
Nz(ibl.sumqty,0) AS SL_Inventory,
"" AS SAP_Inventory,
dbo_job.Uf_CustPo AS PO,
dbo_job.Uf_CustPOLine AS PO_Line
FROM
(dbo_job
LEFT JOIN
(SELECT
i2.item
, SUM(i2.qty_on_hand) AS sumqty
, i2.whse
FROM
dbo_item_by_location_lp_all AS i2
WHERE
i2.whse = [Forms]![MainForm]![Combo367]
GROUP BY
i2.item
, i2.whse
) AS ibl ON dbo_job.item = ibl.item) INNER JOIN dbo_job_sch ON (dbo_job.suffix = dbo_job_sch.suffix) AND (dbo_job.job = dbo_job_sch.job)
WHERE
dbo_job.job Like "H*"
AND dbo_job.job_date= (Date() - (DatePart("w", Date(), 2, 1)-1))
AND dbo_job.item Not Like "indirect"
AND dbo_job.whse = [Forms]![MainForm]![Combo367]
ORDER BY
dbo_job.Uf_Production_Line,
dbo_job_sch.priority;