Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Counter values from Child loop to Parent loop

Counter values from Child loop to Parent loop

Counter values from Child loop to Parent loop


We are using WTX8.3 on Windows.

My Input looks like - All the loops repeats (s).

Parent Loop (s)

Child Loop1 (First occurance of (s))

GrandChild Loop1.1 (First occurance of (s))

Child Loop2 (Second occurance of (s))

GrandChild Loop2.1 (First occurance of (s))

Output should populate all the records only (Parent & Child) at the same level with the sequence number.

1 Record1
2 Record2
3 Record1
4 Record2
5 Record1
6 Record2
7 Record1
8 Record2

How would I populate the sequence number? How can I pass the counter from the child level to the parent level so it can resume counting from where child or grandchild had left off?


RE: Counter values from Child loop to Parent loop

Probably need to see an example of your data.  But, it looks like you have two record types.  Or, do you have 4 record types 2 for child and 2 for grandchild?

If the former what differentiates the child from the grandchild?

How you would do this would depend on your type tree.  'Index' might work 'Max' might work too.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close