W
William
Hi,
i'm run follow code:
strQuery = "SELECT MAX(Drug_ID) AS MaxIDNo FROM Drug"
sqlCom = New SqlCommand(strQuery, conn)
drDataReader = sqlCom.ExecuteReader
--> MaxIDNo = DataReader(0)
i get the error -
Additional information: Invalid attempt to read when no data is present.
what the problem about this?
thx
William
i'm run follow code:
strQuery = "SELECT MAX(Drug_ID) AS MaxIDNo FROM Drug"
sqlCom = New SqlCommand(strQuery, conn)
drDataReader = sqlCom.ExecuteReader
--> MaxIDNo = DataReader(0)
i get the error -
Additional information: Invalid attempt to read when no data is present.
what the problem about this?
thx
William