[求助]如何在DataGrid1中显示指定条件的记录
<P>大家好啊<BR>我做的是备忘录<BR>我想查询备忘时间小于现在时间的记录并显示出来,我该用什么语句实现<BR>如果查询出来后把记录全部删除<BR>该用什么语句实现<BR>请高手指点 <BR>小弟先谢过了</P> ding qi lai select * from tablename where yourtime < now()<BR><BR>delete from tablename where yourtiem < nolw()<BR><BR>就这两个. <P>楼上的<BR>我不能把我查询出来的显示在datagrid里面<BR>显示该用什么语句啊</P> <P>With Adodc1<BR> .ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\adu.mdb;Mode=ReadWrite;Persist Security Info=False"<BR> .CommandType = adCmdTable<BR> .RecordSource = "select * from beizhu where 备注时间 < & Now()"<BR> adodc1.refresh<BR> DataGrid1.Refresh<BR> <BR> End With<BR> </P> 上面的语句为什么不能实现啊啊 把查询出来的数据放到DataSet中,再把这个DataSet赋给DataGrid1. <P>楼上的<BR>怎么放啊<BR>我还是不能实现啊<BR></P>页:
[1]
