Please Correct this Error
VB Code:
  1. dim MaxNo,RCount as integer
  2.             SQL= "Select IsNull(Max(RptID),0)+1,count(*) from RptMain"
  3.             MyConnection = New SqlConnection(Application("Constr"))
  4.             mycmd=New SqlCommand(SQL,MyConnection)
  5.             MyConnection.open()
  6. [COLOR=red]MaxNo = mycmd.ExecuteScalar(0)[/COLOR]
  7.             RCount = mycmd.ExecuteScalar(1)
I got the following Error
Error line i mention it as Red color

System.MissingMemberException: No default member found for type 'Integer'.

Please Help me