|
-
Apr 19th, 2004, 01:05 AM
#1
Thread Starter
Fanatic Member
Calling Access function from VB.NET
Can anyone please tell me how to call an Access 2000 DAO Procedure/function from VB.NET front end?
Thanx
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Apr 19th, 2004, 03:01 AM
#2
Fanatic Member
can u ellaborate pls. i am not getting u. what's the exact purpose??
-
Apr 21st, 2004, 09:22 PM
#3
Thread Starter
Fanatic Member
I have an Access 2000 database which has some module code (written in DAO). I want to develop a form of that database using VB.NET. I like to call the Access module codes from VB.NET. How can I do that?
Hope it is clear now :-)
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Apr 22nd, 2004, 02:55 AM
#4
Fanatic Member
add a reference of MS DAO 3.6 to ur project.
VB Code:
dim DBEng as New DAO.DBEngine
dim db as DAO.database
dim rs as DAO.recordset
db = DBEng.OpenDatabase("c:\Mydb.mdb")
rs = db.OpenRecordset("MyTable", DAO.RecordsetTypeEnum.dbOpenTable)
I hope this helps.
To call a access macro I think u need to add an access object and try the DoCmd method of it.
Regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|