STEP A
- Customer Number: No loop
- ISBN: Loop
STEP B
- Customer Number: Loop
- ISBN: Sub Loop
In other words the ISBN from STEP B is a loop within Customer Number from STEP B.
I use the i variable in both loops (Primary and sub loop of STEP B). So what I am seeing is STEP A using the first customer number and looping thru all of my ISBN numbers fine. It then goes into STEP B starts the customer number loop and assigns a value to i, then it get's into ISBN's sub loop which also assigns a value to i.
I think the extra value the sub loop is assigning to i is being carried over to when it loops thru the second time on STEP B. Hence my customer number data being pulled from the global data table happens in this order, per each iteration:
Row 1
Row 2
Row 7
So far I have tried using j inplace of i in my sub loop. That caused other data input into my app problems.
I have also tried capturing i's value before it enters the sub loop and placing that into a variable, let's say vals1.
Then when the loop for STEP B loops the second time I have it referrence the value that was set in vals1 instead of the current value of i. But that also doesn't work as expected.
I hope this is making sense to someone besides myself.
SBsteve
- Customer Number: No loop
- ISBN: Loop
STEP B
- Customer Number: Loop
- ISBN: Sub Loop
In other words the ISBN from STEP B is a loop within Customer Number from STEP B.
I use the i variable in both loops (Primary and sub loop of STEP B). So what I am seeing is STEP A using the first customer number and looping thru all of my ISBN numbers fine. It then goes into STEP B starts the customer number loop and assigns a value to i, then it get's into ISBN's sub loop which also assigns a value to i.
I think the extra value the sub loop is assigning to i is being carried over to when it loops thru the second time on STEP B. Hence my customer number data being pulled from the global data table happens in this order, per each iteration:
Row 1
Row 2
Row 7
So far I have tried using j inplace of i in my sub loop. That caused other data input into my app problems.
I have also tried capturing i's value before it enters the sub loop and placing that into a variable, let's say vals1.
Then when the loop for STEP B loops the second time I have it referrence the value that was set in vals1 instead of the current value of i. But that also doesn't work as expected.
I hope this is making sense to someone besides myself.
SBsteve