Man, I can get it. What am I doing wrong? Now I want to see the next records using a button, just to see if they're there, but it returns me an error of:
"Arguments are of the wrong type, are out of acceptable range or are in conflict with one another"
When I press the button. Then, if I press the Debug option, it highlights the following part of the buttons code:
Private Sub Command1_Click()
Dim str As String
Dim Pacrs As New ADODB.Recordset
str = "SELECT * FROM Pacientes ORDER BY Nombre;"
'This is what the debug option highlights;
Pacrs.Open str, Pacdb, adOpenDynamic, adLockOptimistic
If Not Pacrs.EOF Then
Pacrs.MoveNext
End If
Pacrs.Close
End Sub
The rest of the code is already been post by manojsah. Can anyone tell me what did I do wrong?
Thanks in advance for the help you can provide.