Results 1 to 4 of 4
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,644

    DAO .Edit "Method or data member not found"


    A simple piece of code, but "Method or data member not found" error issued on the ".Edit" statement when module compiled (A2003). I'm not seeing the problem. (DAO 3.6 object library is included in the References.) What am I missing?
    Thanks,
    Bill


    Code:
    Option Compare Database
    Option Explicit
    Option Base 1
     
    (snip)
    
    Dim rs As DAO.Recordset         ' The Recordset we'll update with the serialization (SerialNo) and booklet sort key.
    
    Dim I As Integer                ' Working variable
    Dim J As Integer                ' Working variable
    Dim K As Integer                ' Working variable
    Dim L As Integer                ' Working variable
    Private Sub Booklet_Recordset()
    
    
    Set rs = DBEngine(0)(0).OpenRecordset("QBooklet-RS")
    
    ' First serialize the recordset (RecordID's not applicable here)
    I = 1
        Do While Not rs.EOF
        rs!SerialNo.Edit
        rs!SerialNo = I
        rs.Update
        I = I + 1
        rs.MoveNext
        Loop
    
    rs.Close
    Set rs = Nothing
    End Sub

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,903
    The edit line would be on the recordset, not a field:

    rs.Edit
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,644
    Good Grief!!! I need a vacation!

    Thanks Paul,
    Bill

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,903
    No problem Bill. Come on down, it's not very smokey today.
    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. "Method or data member not found"
    By GraeagleBill in forum Programming
    Replies: 6
    Last Post: 08-17-2013, 05:23 PM
  2. compile error method or data member not found???
    By chuman vishal in forum Programming
    Replies: 2
    Last Post: 02-26-2013, 01:57 PM
  3. Method or data member not found
    By papa yaw in forum Programming
    Replies: 5
    Last Post: 12-17-2012, 02:19 PM
  4. Replies: 7
    Last Post: 06-08-2012, 09:55 PM
  5. Compile Error: Method or data member not found
    By subtilty in forum Programming
    Replies: 5
    Last Post: 02-09-2012, 07:56 AM

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