select * from student
where 日期 between " + Chr(35) + Str(DTP1.Value) + Chr(35) + "and " + Chr(35) + Str(DTP2.Value) + Chr(35) + "& " & Combo1.text & " order by 编号
where 日期 between " + Chr(35) + Str(DTP1.Value) + Chr(35) + "and " + Chr(35) + Str(DTP2.Value) + Chr(35) + "& " & Combo1.text & " order by 编号
解决方案 »
- ~UP有分~关于VB串口通讯程序中查询串口是否已被打开~
- 有关读INI文件的问题
- 请教各位大哥,如何连接两个Socket,以把一个WinSock接收的数据作为输入传给另一个Server的WinSock呢?
- ADODB.Recordset.Close
- Dll : VC开发的Dll在VB中调用的参数问题(integer)!!!
- 简单问题!烦劳各位了!
- 十分感激
- 作业快交了,请帮帮忙吧!!谁能告诉我怎样使我做的程序看上去漂亮一些,我要把工具栏、菜单栏和状态栏都改成一种颜色,这三样东东的颜色
- 报错:Consumer's event handler called a non-reentrant method in the provider,什么意思?
- lanren_me(阿波)同志
- 如何实现旋转矩形的外接矩形
- SQL语句是以 ' 为分界,若像下面的语句怎么处理?
where 日期 between "" + Chr(35) + Str(DTP1.Value) + Chr(35) and "" + Chr(35) + Str(DTP2.Value) + Chr(35) + "& " & Combo1.text order by 编号
sql="select * from student
where 日期 between #"& format(DTP1.Value,"yyyy-mm-dd") & "# and #"format(DTP2.Value,"yyyy-mm-dd") &"# " & Combo1.text & " order by 编号
combo1.text是所选的字符条件
还有VB的话,最好改+为&