I have to following code on a button:
pubLngProposalNo = [tbLngProposalNo] ' get the current proposal number
Dim d As DAO.Database
Dim r As DAO.Recordset
Dim strSQL As String
strSQL = "SELECT tblProposal.fLngProposalNo, tblProposal.fTxtCompany " _
& "From tblProposal " _
& "WHERE (((tblProposal.fLngProposalNo)>= " & pubLngProposalNo & "));"
Set r = CurrentDb.OpenRecordset(strSQL)
Debug.Print "fTxtCompany " & fTxtCompany
I can only reference the first record in the query results. How do I reference the other records in the query. I push a button on the form which it should get several proposal numbers and company names?