Results 1 to 4 of 4

Thread: Calling Access function from VB.NET

  1. #1

    Thread Starter
    Fanatic Member sbasak's Avatar
    Join Date
    Aug 2001
    Location
    Globe Trotter
    Posts
    524

    Talking 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.

  2. #2
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961
    can u ellaborate pls. i am not getting u. what's the exact purpose??

  3. #3

    Thread Starter
    Fanatic Member sbasak's Avatar
    Join Date
    Aug 2001
    Location
    Globe Trotter
    Posts
    524
    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.

  4. #4
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961
    add a reference of MS DAO 3.6 to ur project.

    VB Code:
    1. dim DBEng as New DAO.DBEngine
    2. dim db as DAO.database
    3. dim rs as DAO.recordset
    4.  
    5. db = DBEng.OpenDatabase("c:\Mydb.mdb")
    6. 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
  •  



Click Here to Expand Forum to Full Width