Results 1 to 2 of 2
  1. #1
    rashima is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    16

    form/subform ADODB recordset

    I have access2010 as front end, sql-server as back-end (no link tables)

    i have 2 tables one-to-many relationship in sql server and want to have that data with parent/child relationship on access form.

    on main form i display records like this

    sRepSQL = "SELECT * from View_Detail "

    conMyRepConnection.ConnectionString = MyConnectionString
    conMyRepConnection.Open
    rsReportList.Open sRepSQL, conMyRepConnection, adOpenStatic, adLockPessimistic
    Set Me.Recordset = rsReportList


    how to display records on subform ??


    Detail_ID is the common child-parent relationship key.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Never used SQL and don't work with unbound data forms. So just guessing but after setting the RecordSource of the subform, maybe use code to set the Master/Child link properties of the subform container control?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 08-23-2012, 12:28 AM
  2. bind field to adodb.recordset field
    By gem1204 in forum Access
    Replies: 7
    Last Post: 04-26-2012, 01:07 PM
  3. Replies: 2
    Last Post: 03-08-2012, 12:59 PM
  4. ADODB Recordset behaving strangely
    By RayMilhon in forum Programming
    Replies: 4
    Last Post: 11-04-2011, 12:21 PM
  5. Show all recordset in form/subform
    By Brian62 in forum Forms
    Replies: 4
    Last Post: 11-04-2009, 11: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