Question : Access 2007 get first record

The code below works fine, except when one of the records I need is the very first record in the recordset. I presume this is because I am using FindNext and the cursor is on the first record to start with, so when I ask to find next it misses out the first record. So how do I get my code to pick up the very first record please?

loop_role = "y"
provider_id = Forms!frm_list_external_companies.cmb_placing
strSQL = "[fk_role_provider] = " & provider_id
Do While loop_role = "y"
    rs_roles.FindNext strSQL
    If rs_roles.NoMatch Then
        loop_role = "n"
    Else
      ...
    End If

Answer : Access 2007 get first record

loop_role = "y"
provider_id = Forms!frm_list_external_companies.cmb_placing
strSQL = "[fk_role_provider] = " & provider_id
rs_roles.FindFirst
Do While loop_role = "y" And not rs_roles.EOF
    If rs_roles.NoMatch Then
        loop_role = "n"
    Else
      ...
    End If
    rs_roles.FindNext strSQL
End While
Random Solutions  
 
programming4us programming4us