Results 1 to 4 of 4

Thread: DAO Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147

    DAO Help

    I am trying to to read from an Access database using the following code:

    Code:
    Dim Dbs As Database
    Dim Rst As Recordset
    
    'Open Database
    Set Dbs = OpenDatabase(App.Path & "\DB.mdb")
        
    'Get list of all in table
    Set Rst = Dbs.OpenRecordset("TABLE1")
    But i am getting an Error - Runtime Error 13 Type Missmatch when i try to open a record set.

    i have used this method before with no problems, the only difference now is i am using Access2000 could this be the problem?

    do i need a new DAO control (I am using DAO3.6)

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Could it be that you have references to both DAO as ADO?
    Try if specifying a specific DAO recordset helps.

    Dim Rst As DAO.Recordset

  3. #3
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    Dao 3.6 will do.
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147

    Smile

    Cheers Frans C Problem Solved.

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