go to post Scott Nathanson · May 12, 2021 Hi there, I think the problem is that the line which reads "set tRepCount = pHL7Msg.GetValueAt(pField2)" should be "set tRepCount = tSeg.GetValueAt(pField2)" Scott