交易明細出現程式錯誤

關於 記帳軟體-帳務小管家 E-Money 軟體的問題發表
建議或問題回報等

交易明細出現程式錯誤

文章eden3721 » 2012年 12月 23日, 01:35

我在交易明細輸入商品名稱時
擷取1.JPG
輸入的商品名稱
擷取1.JPG (30.71 KiB) 被瀏覽 2569 次

出現程式錯誤
擷取.JPG
錯誤資訊
擷取.JPG (65.21 KiB) 被瀏覽 2569 次

然後就程式關閉了
感覺是「'」造成的,如果沒輸入「'」,程式就正常
錯誤的詳細資訊
-------------------------------------------------------------------------
如需叫用 Just-In-Time (JIT) 偵錯的詳細資料,
請參閱本訊息結尾處 (而非這個對話方塊) 的資訊。

************** 例外狀況文字 **************
System.Data.OleDb.OleDbException: 查詢運算式 ''PACO'S紅酒燉牛肉',BUSINESS_NAME = 'COSTCO',PROD_PRICE = 399,PROD_NOTE = '' WHERE USER_ID = 'eden' AND ACCOUNT_ID = 2 AND MAKE_NO = 946 AND SHOP_NO = 1' 中的 語法錯誤 (少了運算元)。
於 System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr)
於 System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
於 System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
於 System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
於 System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
於 System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
於 c9.a(Object A_0, EventArgs A_1)
於 System.Windows.Forms.Control.OnClick(EventArgs e)
於 System.Windows.Forms.Button.OnClick(EventArgs e)
於 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
於 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
於 System.Windows.Forms.Control.WndProc(Message& m)
於 System.Windows.Forms.ButtonBase.WndProc(Message& m)
於 System.Windows.Forms.Button.WndProc(Message& m)
於 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
於 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
於 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已載入的組件 **************
mscorlib
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
程式碼基底: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
帳務小管家
組件版本: 6.1.0.0
Win32 版本: 6.1.0.0
程式碼基底: file:///D:/Backup123/舊桌面/收支,帳單,薪水/MyMoneyZero5d/帳務小管家zero.exe
----------------------------------------
Microsoft.VisualBasic
組件版本: 8.0.0.0
Win32 版本: 8.0.50727.5420 (Win7SP1.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5460 (Win7SP1GDR.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5462 (Win7SP1GDR.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Microsoft.VisualBasic.Compatibility
組件版本: 8.0.0.0
Win32 版本: 8.0.50727.5420
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.Compatibility/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.Compatibility.dll
----------------------------------------
dao
組件版本: 10.0.4504.0
Win32 版本: 10.0.4504
程式碼基底: file:///D:/Backup123/舊桌面/收支,帳單,薪水/MyMoneyZero5d/dao.DLL
----------------------------------------
System.Data
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
程式碼基底: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.VisualBasic.resources
組件版本: 8.0.0.0
Win32 版本: 8.0.50727.4927 (NetFXspW7.050727-4900)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_zh-CHT_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------
System.Transactions
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
程式碼基底: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Configuration
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Windows.Forms.resources
組件版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHT_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 偵錯 **************
若要啟用 Just-In-Time (JIT) 偵錯功能,則必須在
此應用程式或電腦的 .config 檔案中,設定
system.windows.forms 區段內的 jitDebugging 值。
且該應用程式也必須在啟用偵錯的狀態下進行
編譯。

例如:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

當 JIT 偵錯功能啟用後,會將所有未處理的例外
狀況傳送給電腦上已註冊的 JIT 偵錯工具進行處
理,而不是使用這個對話方塊來處理。
eden3721
 
文章: 8
註冊時間: 2012年 3月 10日, 01:47

Re: 交易明細出現程式錯誤

文章o慕雲o » 2012年 12月 23日, 08:44

eden3721 寫:我在交易明細輸入商品名稱時
擷取1.JPG

出現程式錯誤
擷取.JPG

然後就程式關閉了
感覺是「'」造成的,如果沒輸入「'」,程式就正常
錯誤的詳細資訊


您好
是的
'(單引號) 是 SQL 語法的保留字
所以若您輸入該符號是會發生錯誤沒錯
請您先避開那個符號改用其他符號輸入 :mrgreen:
頭像
o慕雲o
系統管理員
 
文章: 18351
註冊時間: 2011年 8月 13日, 22:05


回到 【記帳軟體】帳務小管家 E-Money-軟體討論區

誰在線上

正在瀏覽這個版面的使用者:Bing [Bot], Google [Bot] 和 23 位訪客

cron