Results 1 to 5 of 5
  1. #1
    Gdm is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    28

    Yet another Run time error 13 - sorry

    I copied an existing Access DB and have been looking at code.


    I am getting Run time error 13 (type mismatch) on the simplest run time query:

    dim rs as Recordset

    Set rs = CurrentDb.OpenRecordset("SELECT * FROM Teacher")

    Any ideas most appreciated.

    Thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Try disambiguating:

    Dim rs As DAO.Recordset
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Gdm is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2010
    Posts
    28
    I tried DAO.Recordset before posting here, but DAO is not recognized. Am I missing a reference?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    What version? In some you need the MS DAO 3.6 library.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Gdm is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2010
    Posts
    28
    Version 2010. Found dao360.dll. Added to references. Problem persists.
    Also, this .mdb file is a copy of another which does not have this reference, yet works perfectly.
    Ideas most appreciated.
    Thanks.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Error: Run-time error '13' Type mismatch
    By uronmapu in forum Access
    Replies: 1
    Last Post: 09-07-2012, 05:38 AM
  2. Replies: 4
    Last Post: 07-25-2012, 04:01 AM
  3. Replies: 0
    Last Post: 07-16-2012, 05:42 AM
  4. Replies: 6
    Last Post: 05-30-2012, 12:32 PM
  5. Replies: 5
    Last Post: 03-27-2012, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums