Complie错误显示 [英] Complie error showing

查看:99
本文介绍了Complie错误显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Private Sub Form_Load()
db_employee.databasename = App.Path & "\bank.mdb"
db_employee.RecordSource = "select * from employee"
db_employee.Refresh
End Sub







error显示



Complie错误显示

方法或数据成员未找到




error showing

Complie error showing
method or data member not found

推荐答案

首先查看它报告错误的实际行:这应该给你一个很大的线索!

如果它是第一行,可能是App.Path不存在(它不是在vB6的App对象属性的MSDN列表中: https:// msdn.microsoft.com/en-us/library/fc353bw2(v=vs.90).aspx [ ^ ]),或者可能是databasename无效。



然后查看db_employee变量的类定义并检查databasename,RecordSource和Refresh属性/方法该类存在。



我们不能为你做到这一点:我们只是没有该代码片段的任何上下文!
Start by looking at the actual line it reports the error on: that should give you a big clue!
If it's the first line, it could be that App.Path doesn't exist (it isn't in the MSDN list of App object properties for vB6: https://msdn.microsoft.com/en-us/library/fc353bw2(v=vs.90).aspx[^]), or it could be that databasename is invalid.

Then look at the class definition for the db_employee variable and check that the databasename, RecordSource and Refresh properties / method exist for that class.

We can't do that for you: we just don't have any context for that code fragment!


这篇关于Complie错误显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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