高分问一个很简单,但我不懂的问题!! select * from [table] where [timefield]>cDate(txtstarttime.text) and [timefield]<cDate(txtendtime.text) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from [table] where [timefield]>txtstarttime.text and [timefield]<txtendtime.text如果SQLSERVER上面这样就可以了 在sqlserver上应该这样生成"select * from [table] where [timefield]>cast('" & trim(txtstarttime.text) & "' as datetime) and " …… select * from [table] where [timefield]>cDate(txtstarttime.text) and [timefield]<cDate(txtendtime.text) sql = "select * from [table] where [timefield]>#" & txtstarttime.text & "# and [timefield]<#" & txtendtime.text & "#"access 用 #2002-11-11#的格式 access 在VB中也可以如此操作 一个很优秀的报表控件http://easyprint.vip.myrice.com/chinese/ 我用的是:select * from [table] where [timefield]>cDate(txtstarttime.text) and [timefield]<cDate(txtendtime.text)没错 用存贮过程写create procedu...@txtStartTime datetime@txtEndTime datetimeselect * from table where cDate >=@txtstarttime and cDate<=@txtEndtime???????????????????? 如何快速检测到数据库是否能正常连接 请问, 库存均价是怎么算出来的. 散分! 关于控件大小问题 如何把界面做成HTML样式的?好多商业软件都是这种样式的!我有一种实现方式,欢迎大家讨论讨论。 VB的逻辑运算and or xor怎么算的? 求救:请各位帮忙在EXCEL里写一个宏,计算一个单元格距当前日期的年、月、日。在线等待…… 如何求解(1+a)^N 在ADO中如何获取表名 求助VB中读取TXT文件中的大量数据 winsock中的data接受问题请教! 用ADO中的find方法进行查找,如何判断有无查找到记录?
如果SQLSERVER上面这样就可以了
"select * from [table] where
[timefield]>cast('" & trim(txtstarttime.text) & "' as datetime) and " ……
http://easyprint.vip.myrice.com/chinese/
select * from [table] where [timefield]>cDate(txtstarttime.text) and [timefield]<cDate(txtendtime.text)
没错
create procedu...
@txtStartTime datetime
@txtEndTime datetime
select * from table where cDate >=@txtstarttime and cDate<=@txtEndtime
????????????????????