Results 1 to 6 of 6
  1. #1
    Middlemarch is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2015
    Posts
    340

    Move to Record in Form is failing


    I'm having some trouble Moving to a specific record in my Form.
    Code:
    Dim rss As DAO.Recordset
    Set rss = Me.Mainsubform.Form.RecordsetClone
    
     'Move to record in Form - Fails???
        rss.FindFirst ("Prefix = '" & rss!Prefix & "'")
    Possibly this is just finding the record in the recordset, not the Form ?
    Debug.print Form_Mainsubform!Prefix should show the new Prefix, but instead it's the existing Prefix, suggesting I haven't moved anywhere.

  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
    Yes, see if this helps you.

    http://www.baldyweb.com/Requery.htm

    Specifically the bookmark part.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Middlemarch is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2015
    Posts
    340
    No luck Paul I get You entered an expression that has an invalid reference to the
    property Bookmark.

    Some of the problem may be the code is in one Form but I want to address data in it's subform.
    I'm getting tied up in circles, using the Form the Subform and the recordset correctly.

  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 code did you try? The references need to be consistent.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Middlemarch is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2015
    Posts
    340
    Sorry Paul, late reply. Got it sorted.. thanks

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Glad you got it sorted.

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

Similar Threads

  1. Move record out and display It in another form ?
    By Lukael in forum Programming
    Replies: 5
    Last Post: 01-06-2016, 07:07 AM
  2. Replies: 3
    Last Post: 02-06-2015, 01:18 PM
  3. Replies: 3
    Last Post: 12-11-2014, 11:26 AM
  4. Replies: 5
    Last Post: 11-06-2013, 02:49 PM
  5. Move from form to form with same record
    By soulice in forum Forms
    Replies: 14
    Last Post: 01-14-2012, 01:15 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