失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > access vba 用recordset读取表中数据的简单方法

access vba 用recordset读取表中数据的简单方法

时间:2020-01-30 08:41:44

相关推荐

access vba 用recordset读取表中数据的简单方法

'strQuery是表名,查询名等Public Function Getrs(Byval strQuery as string) as ADODB.RecordsetDim objRs As New ADODB.Recordseton Error GoTo Error_GetrsobjRs.open strQuery,CurrentProject.connection'程序调试用'Do While Not objRs.EOF' Debug.Print objRs(0) & vbTab & objRs(1) & vbTab & _'objRs(2)' objRs.MoveNext'LoopSet Getrs =objRsExit _Getrs:Exit FunctionError_Getrs:MsgBox (Err.Description)Resume Exit _GetrsEnd Function

如果觉得《access vba 用recordset读取表中数据的简单方法》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。