Private Sub Command0_Click()
Dim rst As New ADODB.Recordset
rst.Open "select * from tbl where b like '*man*'", CurrentProject.Connection
rst.MoveFirst
End Sub
上面的语句为什么得到的记录集rst是空的呢,我把select * from tbl where b like '*man*'直接做个查询是有记录的啊,真是百思不得其解!
改成rst.Open "select * from tbl where b= 'man'", CurrentProject.Connection就可以了,难道在ADO里面不能用LIKE吗?(