如何用Recordset作为函数的参数传递?
例如程序中有多个recordset,想写个函数,显示recordset里第一个列标题(msgbox recordset.fields(0).name)想把recordset作为函数的参数,那么函数定义怎么写?
为什么总是提示我类型不匹配啊? --------------------编程问答--------------------
Private Function GetFieldsName(ByRef RS as ADODB.RecordSet) As String
Msgbox RS.Fields(0).Name
End Function
试试这个 --------------------编程问答-------------------- 看看你的代码呢
补充:VB , 数据库(包含打印,安装,报表)