| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 952 人关注过本帖
标题:Microsoft JET Database Engine 错误 '80040e14'
只看楼主 加入收藏
huade
Rank: 1
来 自:廣州
等 级:新手上路
帖 子:244
专家分:0
注 册:2008-1-25
结帖率:80%
收藏
 问题点数:0 回复次数:2 
Microsoft JET Database Engine 错误 '80040e14'
Microsoft JET Database Engine 错误 '80040e14'

语法错误 (操作符丢失) 在查询表达式 '720 Preamp' 中。

/myweb/admin/GL_CP/CP_XH/XH_update.asp,行 111
搜索更多相关主题的帖子: Microsoft Engine Database JET 
2008-01-25 11:24
huade
Rank: 1
来 自:廣州
等 级:新手上路
帖 子:244
专家分:0
注 册:2008-1-25
收藏
得分:0 
在线等……
急,请各位高手解救
2008-01-25 11:27
huade
Rank: 1
来 自:廣州
等 级:新手上路
帖 子:244
专家分:0
注 册:2008-1-25
收藏
得分:0 
代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../../Connections/connms.asp" -->
<%
' *** Edit Operations: declare variables

Dim MM_editAction
Dim MM_abortEdit
Dim MM_editQuery
Dim MM_editCmd

Dim MM_editConnection
Dim MM_editTable
Dim MM_editRedirectUrl
Dim MM_editColumn
Dim MM_recordId

Dim MM_fieldsStr
Dim MM_columnsStr
Dim MM_fields
Dim MM_columns
Dim MM_typeArray
Dim MM_formVal
Dim MM_delim
Dim MM_altVal
Dim MM_emptyVal
Dim MM_i

MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = ""
%>
<%
' *** Update Record: set variables

If (CStr(Request("MM_update")) = "form1" And CStr(Request("MM_recordId")) <> "") Then

  MM_editConnection = MM_connms_STRING
  MM_editTable = "MS_products"
  MM_editColumn = "cp_id"
  MM_recordId = "" + Request.Form("MM_recordId") + ""
  MM_editRedirectUrl = "XH_Z_cht.asp"
  MM_fieldsStr  = "cht_xl|value|eng_xl|value|xlid|value|cht_xh|value|eng_xh|value|cht_conten|value|eng_conten|value"
  MM_columnsStr = "ctl_cpxl_cht|',none,''|ctl_cpxl_eng|',none,''|catalog_id|none,none,NULL|cpxh_name_cht|',none,''|cpxh_name_eng|',none,''|cpxh_content_cht|',none,''|cpxh_content_eng|',none,''"

  ' create the MM_fields and MM_columns arrays
  MM_fields = Split(MM_fieldsStr, "|")
  MM_columns = Split(MM_columnsStr, "|")
  
  ' set the form values
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
  Next

  ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If

End If
%>
<%
' *** Update Record: construct a sql update statement and execute it

If (CStr(Request("MM_update")) <> "" And CStr(Request("MM_recordId")) <> "") Then

  ' create the sql update statement
  MM_editQuery = "update " & MM_editTable & " set "
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_formVal = MM_fields(MM_i+1)
    MM_typeArray = Split(MM_columns(MM_i+1),",")
    MM_delim = MM_typeArray(0)
    If (MM_delim = "none") Then MM_delim = ""
    MM_altVal = MM_typeArray(1)
    If (MM_altVal = "none") Then MM_altVal = ""
    MM_emptyVal = MM_typeArray(2)
    If (MM_emptyVal = "none") Then MM_emptyVal = ""
    If (MM_formVal = "") Then
      MM_formVal = MM_emptyVal
    Else
      If (MM_altVal <> "") Then
        MM_formVal = MM_altVal
      ElseIf (MM_delim = "'") Then  ' escape quotes
        MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'"
      Else
        MM_formVal = MM_delim + MM_formVal + MM_delim
      End If
    End If
    If (MM_i <> LBound(MM_fields)) Then
      MM_editQuery = MM_editQuery & ","
    End If
    MM_editQuery = MM_editQuery & MM_columns(MM_i) & " = " & MM_formVal
  Next
  MM_editQuery = MM_editQuery & " where " & MM_editColumn & " = " & MM_recordId

  If (Not MM_abortEdit) Then
    ' execute the update
    Set MM_editCmd = Server.CreateObject(")
    MM_editCmd.ActiveConnection = MM_editConnection
    MM_ = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    If (MM_editRedirectUrl <> "") Then
      Response.Redirect(MM_editRedirectUrl)
    End If
  End If

End If
%>
<%
Dim xh__MMColParam
xh__MMColParam = "1"
If (Request.QueryString("up") <> "") Then
  xh__MMColParam = Request.QueryString("up")
End If
%>
<%
Dim xh
Dim xh_numRows

Set xh = Server.CreateObject("ADODB.Recordset")
xh.ActiveConnection = MM_connms_STRING
xh.Source = "SELECT * FROM [MS_products] WHERE cp_id = " + Replace(xh__MMColParam, "'", "''") + ""
xh.CursorType = 0
xh.CursorLocation = 2
xh.LockType = 1
xh.Open()

xh_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改参数</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->
</script>
</head>

<body>
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>">
  <table width="650" border="1" align="left" cellpadding="0" cellspacing="0" bordercolor="#69707B">
    <tr>
      <td height="40" colspan="2" align="center" valign="middle" bgcolor="#5C636F" class="STYLE11"><strong class="fabu STYLE13 STYLE14">修改-产品型号信息</strong></td>
    </tr>
    <tr>
      <td width="189" height="30" align="center" valign="middle" class="quanbu">品牌系列名:(中文)</td>
      <td width="455" height="30" align="left" valign="middle"><input name="cht_xl" type="text" id="cht_xl" value="<%=(xh.Fields.Item("ctl_cpxl_cht").Value)%>" /></td>
    </tr>
    <tr>
      <td height="30" align="center" valign="middle" class="quanbu">品牌系列名:(英文)</td>
      <td height="30" align="left" valign="middle"><input name="eng_xl" type="text" id="eng_xl" value="<%=(xh.Fields.Item("ctl_cpxl_eng").Value)%>" /></td>
    </tr>
    <tr>
      <td height="30" align="center" valign="middle" class="quanbu">品牌系列名:(英文)</td>
      <td height="30" align="left" valign="middle"><span class="hong">
        <input name="xlid" type="text" id="xlid" value="<%=(xh.Fields.Item("catalog_id").Value)%>" />
        *再次确认系列英文</span></td>
    </tr>
    <tr>
      <td height="30" align="center" valign="middle" class="quanbu">型 号:(中文)</td>
      <td height="30" align="left" valign="middle"><input name="cht_xh" type="text" id="cht_xh" value="<%=(xh.Fields.Item("cpxh_name_cht").Value)%>" /></td>
    </tr>
    <tr>
      <td height="30" align="center" valign="middle" class="quanbu">型 号:(英文)</td>
      <td height="30" align="left" valign="middle"><input name="eng_xh" type="text" id="eng_xh" value="<%=(xh.Fields.Item("cpxh_name_eng").Value)%>" /></td>
    </tr>
    <tr>
      <td height="30" align="center" valign="middle" class="quanbu">图 片:</td>
      <td height="30" align="left" valign="middle">?</td>
    </tr>
    <tr>
      <td height="30" align="center" valign="middle" class="quanbu">参 数:(中文)</td>
      <td height="30" align="left" valign="middle"><textarea name="cht_conten" cols="60" rows="15" id="cht_conten"><%=(xh.Fields.Item("cpxh_content_cht").Value)%></textarea></td>
    </tr>
    <tr>
      <td height="30" align="center" valign="middle" class="quanbu">参 数:(英文)</td>
      <td height="30" align="left" valign="middle"><textarea name="eng_conten" cols="60" rows="15" id="eng_conten"><%=(xh.Fields.Item("cpxh_content_eng").Value)%></textarea></td>
    </tr>
    <tr>
      <td height="30" colspan="2" align="center" valign="middle" class="quanbu"><input type="submit" name="Submit2" value="更新" />
        ??
        <input type="reset" name="Submit3" value="重置" />
        ??
        <input name="Submit" type="button" onclick="MM_callJS('history.back()')" value="返回上一页" /></td>
    </tr>
  </table>

  <input type="hidden" name="MM_update" value="form1">
  <input type="hidden" name="MM_recordId" value="<%= xh.Fields.Item("cp_id").Value %>">
</form>
</body>
</html>
<%
xh.Close()
Set xh = Nothing
%>
2008-01-25 11:30
快速回复:Microsoft JET Database Engine 错误 '80040e14'
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.031128 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved