ASP连接ACCESS数据的问题在运行时出的错
这是我出现的错误:
M[color=#FF0000]icrosoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 'NVC_LADINGBILL = '2' AND INT_ID <>' 中。
/try1/manage/exportedit.asp, 第 155 行[/color]
原码
'查找提单号是否存在
if NVC_LADINGBILL <> "" then
strSql = ""
strSql = strSql & " SELECT "
strSql = strSql & " NVC_LADINGBILL "
strSql = strSql & " from "
strSql = strSql & GLOBAL_DB_EXPORT
strSql = strSql & " WHERE "
strSql = strSql & " NVC_LADINGBILL = '"& NVC_LADINGBILL &"' "
strSql = strSql & " AND "
strSql = strSql & " INT_ID <> "& INT_ID &" "
set strRs = Server.CreateObject ("ADODB.RECORDSET")
strRs.Open strSql,conn,1,3
if not strRs.eof then
向高手请教!!!!!!!!!!!!!!
if NVC_LADINGBILL <> "" then
strSql = ""
strSql = strSql & " SELECT "
strSql = strSql & " NVC_LADINGBILL "
strSql = strSql & " from "
strSql = strSql & GLOBAL_DB_EXPORT
strSql = strSql & " WH
相关问答:
有一个类
class adc
{
dim a,b,c
}
如何在另外一个类中取得类成员及成员个数
class getmenber
{
dim menbers()
function getmenbers(resclass)
'res为一未知类
'getmenber ......
在asp里怎么调用java写的webservice方法,有很多方法
- <message name="RtPnrIn">
<part name="bstrPnrNO" type="s:string" />
<part name ......
asp虚拟主机实现伪静态的方法:
1、 重写url参数
Step1: 建立前台文件index.asp,修改url参数形式。由于读取数据库中的记录不是专题的重点,故直接给出:
<!--#include file="config.asp" -->
&l ......
万网的服务器支持伪静态的,直接用rewrite在web.config文件写规则,也不用安装组件就可以实现伪静态,但是在时代互联服务器就用不了了,咨询它的客服,他说他们服务器(基本型C)不支持伪静态的.请问一下各位我该用什么方法 ......
Dim aa
aa=GetURL("http://localhost/test1.asp")
Function GetURL(url)
Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
On E ......