使用c#搭建仓储管理信息系统出现的错误

来源:互联网 发布:生产管理系统 源码 编辑:程序博客网 时间:2024/04/30 02:18

使用c#搭建仓储管理信息系统,数据库连接的access。

生成代码无错误。

调试,开始运行,刚开始运行就弹出下面的错误对话框:

 

使用c搭建仓储管理信息系统出现了错误 - 弘毅 - 弘毅

 

点击确定后,运行程序。

点击保存按钮,又弹出如下错误:

  使用c搭建仓储管理信息系统出现了错误 - 弘毅 - 弘毅

下面的文本是“详细信息”:

 有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Data.OleDb.OleDbException: 标准表达式中数据类型不匹配。
   在 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()
   在 ims.Form1.btnSave_Click(Object sender, EventArgs e) 位置 E:/Program-Thinking/practising/c#刘弘扬/ims/ims/Form1.cs:行号 110
   在 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)

 

 

 

原创粉丝点击