When I use this statement
Dim selectCMD2 As SqlCommand = New SqlCommand()
selectCMD2.CommandText = "Select * from timemonths where loginID = '" & Session("whosonline" & "' and monthnumber < '" & today & "' and approval = '0'"
selectCMD2.Connection = dbconn
selectCMD2.CommandTimeout = 30
dbconn.open
showmonth.DataSource = selectCMD2.ExecuteReader()
showmonth.DataBind()
dbconn.close()
How can I detiremine if nothing was stored in the showmonth. I tried using
if selectCMD.ExecuteNonQuery() = 0 then
But this doesn't seem to work, Any suggestions would be great???
Dim selectCMD2 As SqlCommand = New SqlCommand()
selectCMD2.CommandText = "Select * from timemonths where loginID = '" & Session("whosonline" & "' and monthnumber < '" & today & "' and approval = '0'"
selectCMD2.Connection = dbconn
selectCMD2.CommandTimeout = 30
dbconn.open
showmonth.DataSource = selectCMD2.ExecuteReader()
showmonth.DataBind()
dbconn.close()
How can I detiremine if nothing was stored in the showmonth. I tried using
if selectCMD.ExecuteNonQuery() = 0 then
But this doesn't seem to work, Any suggestions would be great???