it will be one record found
use this code:
Dim rs As DAO.Recordset
Dim sqlStr As String
sqlStr = "SELECT * FROM agentKPI WHERE staffName = '" & Environ$("username") & "'"
Set rs = CurrentDb.OpenRecordset(sqlStr)
'Check to see if the recordset actually contains rows
If Not (rs.EOF And rs.BOF) Then
Forms!agentKPI!Label10.Caption = rs("staffName")
Forms!agentKPI!Label14.Caption = rs("kpi1")
Forms!agentKPI!Label23.Caption = rs("kpi2")
Forms!agentKPI!Label26.Caption = rs("kpi3")
Else
MsgBox "There are no records in the recordset."
End If
MsgBox "Finished looping through records. " & Environ$("username")
rs.Close 'Close the recordset
Set rs = Nothing 'Clean up