我有一个破坏的Access查询,它被破坏的原因是它引用的表之一不存在所以我无法在设计视图中看到查询 - 问题是我通常在SQL Server和一些格式对我来说很奇怪 - 我需要删除所有对RMS_Import'的引用。表 - 任何想法?
谢谢!
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;
答案 0 :(得分:1)
快速而肮脏的GUI方式是只需创建一个表 <?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#008FFF">
</ListView>
编辑查询,使用编辑器将其从查询中删除,保存查询然后删除RMS_Import表
手动你应该只能从查询字符串中删除文本 05-24 21:36:50.374 3881-3881/com.jcc.javier.navegacioncajon
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.jcc.javier.navegacioncajon, PID: 3881
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jcc.javier.navegacioncajon/com.jcc.javier.navegacioncajon.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class fragment
Caused by: android.view.InflateException: Binary XML file line #18: Error inflating class fragment
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v7.app.ActionBar.getThemedContext()' on a null object reference
at com.jcc.javier.navegacioncajon.Cajon.onCreateView(Cajon.java:100)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:2192)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1255)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1472)
at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1691)
at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:3440)
at android.support.v4.app.FragmentController.onCreateView(FragmentController.java:120)
at android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:378)
at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:33)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:79)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:777)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:292)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at com.jcc.javier.navegacioncajon.MainActivity.onCreate(MainActivity.java:32)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
- 它的两侧是括号,所以很容易单挑出来
在这两种情况下,您都会有未引用的列,每次都会提示用户输入,直到您从查询编辑器列中删除它们