Results 1 to 3 of 3
  1. #1
    ReliabilityDave is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2018
    Posts
    3

    Code for referencing a specific object in a collection of forms

    I created multiple instances of a form using a collection as described by Allen Browne (http://allenbrowne.com/ser-35.html). Each form instance contains several controls that I need to determine the values of but can't figure out how to reference them. Can this be accomplished using collections or do i need to create subforms instead?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Tested with Allen's sample db and the following works: clnClient.Item(1).Controls("FirstName")
    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
    ReliabilityDave is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2018
    Posts
    3
    Thank-you June7. Using yor guidance I was able to solve my issue

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

Similar Threads

  1. Forms collection vs. AllForms collection
    By Access_Novice in forum Programming
    Replies: 1
    Last Post: 01-03-2016, 12:30 AM
  2. Replies: 3
    Last Post: 03-25-2015, 04:34 PM
  3. Select object within collection
    By Ruegen in forum Programming
    Replies: 1
    Last Post: 03-12-2015, 09:11 PM
  4. Replies: 1
    Last Post: 12-12-2012, 02:56 AM
  5. Referencing Controls on Forms
    By cbh35711 in forum Access
    Replies: 7
    Last Post: 04-05-2012, 09:04 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