One of the following is
null
:
PORCP1headerFields
PORCP1headerFields.FieldByName("RCPHSEQ")
PORCP1headerFields.FieldByName("RCPHSEQ").Value
Based on the information provided, there is no way we can tell you which.
You will need to debug your code to find out which thing is
null
when it shouldn't be, and then work out how to fix that problem.