编译错误“未找到方法或数据成员 [英] Compile error 'Method or data member not found

查看:138
本文介绍了编译错误“未找到方法或数据成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是vb6的初学者
当我运行该应用程序时,出现了这样的错误消息
编译错误''未找到方法或数据成员&''

我的代码在这里

I am a beginner in vb6
when i run the application ,i got error message like that
Compile error ''Method or data member not found&''

My Code is here

Dim i As Integer
Dim C As Integer
Dim Rsw As DAO.Recordset
Dim rs As DAO.Recordset


gTkeyCnt = 0
gTWrdCnt = 0

On Error GoTo er

Set db = OpenDatabase("", True, False, gsConnDAO)
Set rs = db.OpenRecordSet("Select * from TestKey")
Set Rsw = db.OpenRecordSet(" Select * from NumbersToWords")
If Not rs.Eof() Then
   rs.MoveLast
   gTkeyCnt = rs.RecordCount
   rs.MoveFirst
End If



[edit]添加了代码块-OriginalGriff [/edit]



[edit]Code block added - OriginalGriff[/edit]

推荐答案

如果您确实希望获得良好的帮助,则必须非常准确地报告错误:您应该报告确切的错误消息通常非常有用.
因此,请修改原始帖子,包括缺少的内容.
:-)
If you really want to get good help, you must be very accurate in reporting errors: you should report the exact error message that is usually pretty informative.
Hence, plese, modify the original post, including the missing bits.
:-)


问题很简单,只需将此引用添加到您的项目中即可:
Microsoft DAO 3.51 Object Liprary
要为您的项目添加引用,请在项目"菜单中单击,然后选择引用"
希望对您有所帮助!
The problem is simple just add this reference to your project:
Microsoft DAO 3.51 Object Liprary
to add a reference to your project click in Project menu and choose References
I hope this can help you!


这篇关于编译错误“未找到方法或数据成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆