Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Private Sub Form_Load()
db_employee.databasename = App.Path & "\bank.mdb"
db_employee.RecordSource = "select * from employee"
db_employee.Refresh
End Sub



error showing

Complie error showing
method or data member not found
Posted
Updated 10-Jun-15 21:13pm
v2
Comments
CPallini 11-Jun-15 3:13am    
What line? You should report detailed error info in order to get better help.
Member 11757843 11-Jun-15 5:26am    
db_employee.databasename = App.Path & "\bank.mdb"

Complie error showing
method or data member not found
Member 11757843 11-Jun-15 5:26am    
databasename error showing

1 solution

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!
 
Share this answer
 
Comments
Member 11757843 11-Jun-15 3:47am    
thanks...
OriginalGriff 11-Jun-15 3:56am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900