Results 1 to 2 of 2
  1. #1
    yahoo is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    4

    Looping through continuous Form subforms

    Hi there

    I'm hoping to hear some good ideas not necessary a ready solution. Discussion would do

    Here is my main continuous form
    Click image for larger version. 

Name:	mainform.PNG 
Views:	8 
Size:	56.5 KB 
ID:	10656
    First column of the main form consists of links(strategies' names) opening a subform for each row(each strategy). Clicking top left link will open the sub form below

    Click image for larger version. 

Name:	subform.PNG 
Views:	6 
Size:	37.6 KB 
ID:	10657
    From subform I can send current strategy to the MS Word template. What Im looking for is a way to somehow loop strategies in main form to print lets say whole batch. Sub form below:

    So technically it could look like for each strategy in batch 5 open subform, run printing macro, go back to mainform, next...

    One way of doing this would be to write a new separate
    printing macro(looping for every strategies from desired batch), but somehow I believe there could be a smarter way...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    Use the RecordsetClone of the main form dataset. Loop through the records of the RecordsetClone. Don't need the subform.

    While Not Me.RecordsetClone.EOF
    'code to print Word document
    Me.RecordsetClone.MoveNext
    Wend
    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. Looping through records in a continous form
    By accessnihon in forum Forms
    Replies: 3
    Last Post: 01-04-2012, 01:04 AM
  2. Non-continuous form
    By alyon in forum Access
    Replies: 6
    Last Post: 07-19-2011, 12:25 PM
  3. Replies: 0
    Last Post: 02-13-2011, 02:55 PM
  4. Continuous Form
    By duckie10 in forum Access
    Replies: 13
    Last Post: 06-09-2009, 11:15 AM
  5. Continuous Subforms Filter Dependant Combo
    By BigBear in forum Forms
    Replies: 0
    Last Post: 04-19-2009, 08:13 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