vb中的查询问题
我建了一张表,车位号、业主号、车位位置、车位状态,我想通过一个按钮找出业主号为空的车位号,用Vb怎么实现,我每次显示都是没有记录的,可是我 把表里所有的业主号都置空还是没有相应的记录!!请各位帮忙! 部分代码如下 id= "Select * from proprietors where proprietorsID='" & "" & "'" Adodc2.RecordSource = id Adodc2.CommandType = adCmdText Adodc2.Refresh DataGrid2.Refresh
Select * from proprietors where proprietorsID='" & "" & "'" 部分,对于查询值是要用Is Null或Not Is Null的. 此部分应该修改为: Select * from proprietors where proprietorsID is null or proprietorsID='' 这样一来可以查询到,同时可以查询到空字符串的值
代码中未见Adodc2.ConnectionString的设置.例: Adodc2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\cartemp.mdb;Persist Security Info=False" 你代码中下句是多余的: Adodc2.CommandType = adCmdText
空用null试试 proprietorsID=null
答:DVBH标准对时间分片、蜂窝标识和DVBH信令技术作为强制性要求必须使用,其它各技术组合是可选的详情>>
答:Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFile...详情>>