Results 1 to 5 of 5
  1. #1
    trevor40's Avatar
    trevor40 is offline Advanced db Manager
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    402

    Me.SubdatasheetExpanded = True 'issue exspands all records not just selected record

    Does anybody know if I can do this to only the current record without having to click on the little + sign?

    This exspands all records not just the selected record
    Private Sub Form_Current()
    Me.SubdatasheetExpanded = true


    End Sub

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    Bing: access vba expand subdatasheet current record

    Best I could find.
    http://www.tek-tips.com/viewthread.cfm?qid=985375

    I don't use datasheet/subdatasheet setup.
    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.

  3. #3
    trevor40's Avatar
    trevor40 is offline Advanced db Manager
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    402
    Thanks for that, I'll see if I can find a workaround as well.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    If not already aware of, might find this interesting http://www.fmsinc.com/MicrosoftAcces...edSubforms.asp
    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.

  5. #5
    trevor40's Avatar
    trevor40 is offline Advanced db Manager
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    402
    Thanks June, but my workaround will still need to be for an imbeded subdatasheet, some thing alone the lines of -

    on current expand all subdatasheets, goto selected record on subdatasheet, turn off expand subdatasheet. leaving only the current record subdatasheet open.

    Saw something like this in my hunt, just have to remember were I saw it now!

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

Similar Threads

  1. Replies: 12
    Last Post: 02-10-2013, 10:13 AM
  2. To make an invoice with selected records
    By mercapto in forum Database Design
    Replies: 5
    Last Post: 10-04-2012, 12:49 PM
  3. Go to selected record
    By Newbie11 in forum Forms
    Replies: 4
    Last Post: 01-07-2012, 04:29 AM
  4. Show selected records in subform
    By Papilion in forum Forms
    Replies: 8
    Last Post: 06-18-2011, 07:41 AM
  5. HELP for updating selected records
    By explorer19 in forum Programming
    Replies: 7
    Last Post: 06-01-2011, 01:29 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