表中提取一条数据问题
我想在表中提取一条数据,但这函数提取出来都是空值,请问哪里错了 才学 不懂 请大家指教Public Function distillaa(ByVal num As String) As ADODB.Recordset
Dim cn As Connection
Dim RS As Recordset
Set cn = New Connection
cn.Open Trim$(dbstringer)
Set RS = New Recordset
RS.Open "select * from number where call='" & num & "'", cn, adOpenKeyset, adLockOptimistic
Set distillaa = RS
Set cn = Nothing
Set RS = Nothing
End Function