I need to create a button script to pull the serial numbers into a text field. I have the loop to grab the line items working, but when I try to loop through the lot/serial distribution, I get an error. Maybe I am not calling it out correctly. Is there a command like oBusObj.Lines to grab the tier distribution per line on my active record or do I have to call out the whole "SO_InvoiceTierDistribution_Bus" & set key values??
The error I get once it gets to the tier loop is


but I am not doing any kind of numeric expression.
I am just trying to gather QuantityShipped & LotSerialNo.
I have a message box after the Line data & then after the Tier data. It returns the Line data to the message box but errors before it gets to Tier data.
Any thoughts or help would be appreciated. Thx!
------------------------------
Dana Young
Lehman Wesley & Associates
------------------------------