ACCESS数据库中的 是/否数据类型的数据统计
access数据库中表sell中的字段isok为 是/否 的数据类型,怎样用查询语句统计出为否(false)的数据,我是这样写的:sql5="select sum(price*shulian*guige),sum(price2*shulian*guige),sum(shulian) from sell where isok=0 and type=0 and bianhao='"&count_sell("bianhao")&"' and zu=false" ,我这样写对不对,哪里有错误请给指正,程序运行时出现这样的错误:
Microsoft VBScript 运行时错误 '800a000d'
类型不匹配: 'formatnumber'
\wwwroot\jxc\produit\sell.asp, line 311
我用isok=false试过了也是错误
isok=false是没错的,应该是别的地方错误吧
查看sell.asp 第311行代码
<%
response.end
end if
if request("isok") <>"" then
conn.execute("update sell set isok="&request("isok")&" where bianhao='"&request("bianhao")&"'")
end if
'取得当前页码
currentpage=request("page")
'response.write currentpage
'response.end
if currentpage <1 or currentpage="" then
currentpage="1"
end if
'取得搜索关键字
nowstartdate=request("startdate")
if nowstartdate="" then
nowstartdate=date()-day(date()-1)
end if
nowenddate=request(&q
相关问答:
Dbgrid连接access 显示数据时拖动滚动条死机?怎么解决啊?
机器太差了吧?
是不是你数据量太大了啊
你数据少一些看看还死机吗?
数据很少啊 就一页。
我在BCB6下做过不少 DBGRID+ACCESS ,从来没有遇到 ......
问题1
我用ADO连接设了用户名密码的数据库
但是我发现我不输入 用户名和密码 都可以连接成功 而且还能把数据读出来
剪了一个名为test数据库 建了一个名为people的表
见了一个 用户名1234 密码1234 的 ......
access中的text型的数字,怎么比较大小啊?
大家知道吗?
因为我想根据这一列数据的大小查询一些东西
举个例子:
就是,我有一列数据为编码:
是text型的数字:如
1101
1102
1103
等,
我现在要取出编码比 ......
vc中用odbc的方法访问access数据库,用到了cdatabase类和crecordset类。数据源在窗口初始化的时候被打开g_datasource.Open("data",FALSE,FALSE); 点击一个按钮启动一个定时器,在定时器内完成以下操作,定 ......
如题 dOOdads 连接 ACCESS 的数据分页问题!
使用 dOOdads 连接 ACCESS数据的时候 数据分页的问题!
根据这个改吧
C# code:
public static Product[] SearchProducts(string keyword, int categoryID, int pa ......