I am trying to parse the through a check to look at all of the items that a customer has ordered and do some other processing if certain items are ordered.
Right now I am just trying to loop through it and just msgbox out each item on the check, but....
The code below is throwing an error, what am I doing wrong?
Error: Method '~' of Object '~' Failed
Dim intTemp
Dim strOut
Set mobjIberEnum = mobjIberDepot.FindObjectFromId(540, CheckID)
Set mobjIberObject = mobjIberEnum.First
For intTemp = 1 To 50
MsgBox intTemp
If mobjIberObject.GetStringVal("DATA") <> "" Then
MsgBox mobjIberObject.GetStringVal("DATA")
End If
Set mobjIberObject = mobjIberEnum.Next
If Err.Number <> 0 Then
MsgBox Err.Description
Exit For
End If
Right now I am just trying to loop through it and just msgbox out each item on the check, but....
The code below is throwing an error, what am I doing wrong?
Error: Method '~' of Object '~' Failed
Dim intTemp
Dim strOut
Set mobjIberEnum = mobjIberDepot.FindObjectFromId(540, CheckID)
Set mobjIberObject = mobjIberEnum.First
For intTemp = 1 To 50
MsgBox intTemp
If mobjIberObject.GetStringVal("DATA") <> "" Then
MsgBox mobjIberObject.GetStringVal("DATA")
End If
Set mobjIberObject = mobjIberEnum.Next
If Err.Number <> 0 Then
MsgBox Err.Description
Exit For
End If