I have a statement that is not always true in my code.
Code:
With oServMan.Document.frames(0).Document.all
Client = .Item("X12").Value
End With
The problem is Client could also be
Code:
With oServMan.Document.frames(0).Document.all
Client = .Item("X12").Value
Client = .Item("X14").Value
Client = .Item("X18").Value
End With
I am having a hard time getting the code to handle this correctly. I want it see if X12 is true, if so continue on.. if not try x14 etc etc. I have tried if statements but have not came up with anything. Also tried error handling, and that worked to an extent, but would ultimately give an error..
This also will apply to this bit as well
Code:
With oServMan.Document.frames(0).Document.all
ProbLoc = .Item("X57").Value
End With
Code:
With oServMan.Document.frames(0).Document.all
ProbLoc = .Item("X57").Value
ProbLoc = .Item("X41").Value
ProbLoc = .Item("X64").Value
End With
Any assistance would be greatly appreciated.