Results 1 to 2 of 2
  1. #1
    mrbabji is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    12

    record selected in SUbform data to be displayed on main form

    Hi everybody

    Request you all to help me out in resolving the following issue.

    I have a Main form and a sub form. Subform has got certain data. I need to display the data on the main form of the record selected in the sub form.



    Please 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
    This type of thing:

    Code:
    Private Sub ID_DblClick(Cancel As Integer)
      Dim rs                      As Object
    
      Set rs = Forms.FindMainRecordBasedonSubformRecord.RecordsetClone
      rs.FindFirst "[ID] = " & Me.ID
    
      Forms!FindMainRecordBasedonSubformRecord.Bookmark = rs.Bookmark
    
      Set rs = Nothing
    End Sub
    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. Replies: 2
    Last Post: 06-17-2010, 04:15 PM
  2. Replies: 1
    Last Post: 06-14-2010, 02:31 AM
  3. Replies: 4
    Last Post: 05-17-2010, 05:32 PM
  4. Replies: 2
    Last Post: 03-31-2010, 01:56 PM
  5. Record Numbers Displayed on Form
    By symfony925 in forum Forms
    Replies: 3
    Last Post: 10-13-2009, 11:06 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