问题
dbReader = DAL.GetCaseSumCasesAssnCtrlMgmtCtrlChargeCodesLeftJoin(ClientKey, txtCaseNumber.Text)
If dbReader.Read Then
Try
txtmgm.Text = dbReader.Item("MgmtCtrlpKey")
HoldMGMKey = dbReader.Item("AssnCtrlpKey")
Catch ex As Exception
End Try
the exception is thrown at "AssnCtrlpkey"
回答1:
It seems to me that your dbReader doesn't have the column you're requesting ("AssnCtrlpKey"). Check your database query for that column.
Your question is sufficiently vague, however, that it's a shot in the dark.
来源:https://stackoverflow.com/questions/3619608/getting-index-out-of-range-exception-could-where-the-problem-in-the-code-is