Results 1 to 2 of 2
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Select object within collection


    I have a collection with the same form name

    I'd like to select the form that has the matching ID from the collection however since they all have the same name "frmSchoolsFound" I can't use

    docmd.selectobject

    I'd like to maximise the form

    each object in the collection has a hwnd but I still haven't figured this one out yet

    I have

    Code:
    If isSchoolOpen(CLng(SchoolID)) = True Then
    
    
    Dim c As Variant
     
                For Each c In clnClient
                    If c.Form!NewSchoolsID = SchoolID Then
         
                    
                   
                        
                        
                    End If
                Next c
        Exit Sub
    End If

  2. #2
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Nevermind

    With c.Form
    c.Form.SetFocus
    DoCmd.Maximize
    End With

    fixed

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

Similar Threads

  1. Replies: 6
    Last Post: 04-11-2014, 05:51 AM
  2. Replies: 3
    Last Post: 03-03-2013, 12:22 PM
  3. Replies: 3
    Last Post: 11-16-2012, 10:15 AM
  4. Replies: 1
    Last Post: 09-03-2011, 07:01 PM
  5. Replies: 1
    Last Post: 08-05-2010, 12:11 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