Always check first for EOF before you compare with any value. There may be no record at all or you may encounter eof in the middle.
if objRecordSet.eof() then
html code goes here
elseif ....
Private Sub Form_Load()
Dim objRs As ADODB.Recordset
Dim strSQL As String
Dim strConnStrTest As String
Dim strConnStrProd As String
rdbTestDB.Value = True
Set objRs = New ADODB.Recordset
strSQL = "SELECT u.wName, count(*) " & _
"FROM Users u, Bugs b "...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.