0
壊れたAccessクエリがあり、参照されているテーブルの1つが存在しないため、デザインビューでクエリが表示されない - 問題は通常ですSQL Serverで動作し、いくつかの書式設定は私にとって奇妙です - 私は 'RMS_Import'テーブルへの参照をすべて取り出す必要があります。MS Accessからテーブルを削除するクエリ
ありがとうございます!
SELECT Temp_LockedList.DEPARTMENT, PO_EmployeeName.Employee, PO_EmployeeName.BU, PO_EmployeeName.[PO Type], Temp_LockedList.STOCK_CATEGORY, Temp_LockedList.PO_NUMBER, Temp_LockedList.MATERIAL, Temp_LockedList.DESCRIPTION, Temp_LockedList.PO_ISSUE_DATE, Date()-[PO_ISSUE_DATE] AS [Days Since Issue], Temp_LockedList.PO_REQ_SHIP_DATE, IIf([LT] Is Null,IIf([dbo_articlenumbers].[LeadTime] Is Null,[rms_info].[leadtime],[dbo_articlenumbers].[LeadTime]),[LT]) AS [Prod LT], Temp_LockedList.PO_ORDERED_QUANTITY, Temp_LockedList.PO_BALANCE_QUANTITY, Temp_LockedList.Color, Temp_LockedList.ORIGINAL_SEASON, Temp_LockedList.CURRENT_SEASON, Temp_LockedList.LAUNCH_DATE, Temp_LockedList.WORKING_NUMBER, Temp_LockedList.IB_LOCK, Temp_LockedList.ORDER_PRIORITY_INDICATOR, Temp_LockedList.RANGE_TYPE_DESC, IIf([ActivationStatus] Is Null,[Lifecycle1] & "/" & [LO_Track1],[ActivationStatus]) AS [Activation Status/Prod Stat/Dev- LO], IIf([SignoffDate] Is Null,[RMS_Info].[Buy Ready],[SignoffDate]) AS [Buy Ready Date/ Sign off Date], RMS_Import.long_descr, RMS_Import.ret_from, RMS_Import.ret_to, IIf([MinOfCreateDate] Is Null,Date(),[MinOfCreateDate]) AS [First Shown on rpt], IIf(IsNull([LockedList - 2].[US PO #]),Null,"x") AS [In prior rpt]
FROM ((((((Temp_LockedList LEFT JOIN dbo_ArticleNumbers ON Temp_LockedList.MATERIAL = dbo_ArticleNumbers.ArticleNumber) LEFT JOIN PO_EmployeeName ON (Temp_LockedList.PO_NUMBER = PO_EmployeeName.PO_NUMBER) AND (Temp_LockedList.PO_ITEM_NUMBER = PO_EmployeeName.PO_ITEM_NUMBER) AND (Temp_LockedList.MATERIAL = PO_EmployeeName.MATERIAL)) LEFT JOIN RMS_Info ON Temp_LockedList.MATERIAL = RMS_Info.Article) LEFT JOIN [LockedList - 2] ON (Temp_LockedList.PO_NUMBER = [LockedList - 2].[US PO #]) AND (Temp_LockedList.MATERIAL = [LockedList - 2].Article)) LEFT JOIN [LockedList - 4] ON (Temp_LockedList.PO_NUMBER = [LockedList - 4].[US PO #]) AND (Temp_LockedList.MATERIAL = [LockedList - 4].Article)) LEFT JOIN RMS_Import ON Temp_LockedList.MATERIAL = RMS_Import.artnr) LEFT JOIN exceptions ON Temp_LockedList.PO_NUMBER = exceptions.[SAP PO NUMBER]
ORDER BY Temp_LockedList.DEPARTMENT, Temp_LockedList.PO_NUMBER, Temp_LockedList.MATERIAL;
awesoem - 私はプロンプトに何を入れても問題ありませんか? – user3496218
いいえ、プロンプトで入力したものは結果のデータ列になります。整列理由のためにそこにいる必要がない限り、私は列を削除します – EkriirkE
私たちは私たちが見つけた(難しい方法で)整列のためにそれを必要としましたが、私たちはそれをヌルにしました - – user3496218