Results 1 to 4 of 4
  1. #1
    Max P is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Nov 2019
    Posts
    2

    Access 2003 to 2013 query


    I have resisted converting from Access 2003 to 2013 for some time as I find 2003 more user friendly. However I now need to take the plunge. I have converted my 2003 database, relinked all the tables but i am constantly getting an error when I use the vba 'Findfirst' command. I am getting told 'Method or Data Member Not Found', this makes no sense and I can't see what is causing it. Can anybody help?

  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,521
    What is the actual code?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Max P is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Nov 2019
    Posts
    2
    I have stripped the code right down to this:-



    Dim Criteria As String, MyDB As Database, myset As Recordset


    Set MyDB = DBEngine.Workspaces(0).Databases(0)
    Set myset = MyDB.OpenRecordset("Test")
    Criteria = "Keyfield = '" & [In] & "'"
    myset.FindFirst Criteria



    It seems quite happy with a 'Movefirst' statement but is now telling me that the operation is not supported for this type of object. The code is very old but works so I am loathe to rewrite too much. Thanks in anticipation for any help.

  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,521
    Try these tweaks:

    Dim Criteria As String, MyDB As DAO.Database, myset As DAO.Recordset


    Set MyDB = DBEngine.Workspaces(0).Databases(0)
    Set myset = MyDB.OpenRecordset("Test", dbOpenDynaset)
    Criteria = "Keyfield = '" & [In] & "'"
    myset.FindFirst Criteria
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Migration: Access 2003 to Access 2013
    By deadshot in forum Access
    Replies: 7
    Last Post: 06-22-2017, 04:22 PM
  2. Replies: 4
    Last Post: 10-09-2015, 12:22 PM
  3. pdf issue after upgrading from 2003 to 2013
    By rtiql8n in forum Access
    Replies: 7
    Last Post: 08-07-2014, 05:42 PM
  4. Replies: 2
    Last Post: 02-11-2014, 07:40 PM
  5. Replies: 12
    Last Post: 07-25-2013, 12:49 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