Ms Access 2010 accdb.
What is happening here when 1 is returned as record count when there are no records
I tested the sql and no record exists yet un the vba code the MsgBox returns 1
I want to trap where no record exists but as this returns 1, the code continues and
Any ideas on what is happening here
What is happening here when 1 is returned as record count when there are no records

Code:
Dim dbs As DAO.Database, rst As DAO.Recordset
Dim lngOldLoanID As Long 'Loan ID to be Refinanced
Set dbs = CurrentDb
'populate variables
lngOldLoanID = Me!cboLoanID
Set rst = dbs.OpenRecordset("SELECT TblRefinance.RefinanceID As RefID, TblRefinance.RefinanceAmount " & _
"FROM TBLLOAN LEFT JOIN TblRefinance ON TBLLOAN.LDPK = TblRefinance.OldLoanID " & _
"WHERE (((TBLLOAN.LDPK)=" & lngOldLoanID & ") AND ((TblRefinance.RefinanceRepayID) Is Null));", dbOpenDynaset)
If rst.RecordCount > 0 Then 'Record exists. Populate form control
MsgBox rst.RecordCount
I tested the sql and no record exists yet un the vba code the MsgBox returns 1
I want to trap where no record exists but as this returns 1, the code continues and

Any ideas on what is happening here
