Hello,
I need help on telling a record pointer to go the next record. My code below doesn't go to the next record and I don't know why??? Is there any other command???
Private Sub Form_Load()
recno = DCount("caindex", "dbo_PMATEST"
recntr = 0
DoCmd.RunCommand acCmdRecordsGoToFirst
Do While Not recntr = recno
caindex = recntr + 1
DoCmd.RunCommand acCmdRecordsGoToNext
Loop
End Sub
Any help will be very much appreciated.
I need help on telling a record pointer to go the next record. My code below doesn't go to the next record and I don't know why??? Is there any other command???
Private Sub Form_Load()
recno = DCount("caindex", "dbo_PMATEST"
recntr = 0
DoCmd.RunCommand acCmdRecordsGoToFirst
Do While Not recntr = recno
caindex = recntr + 1
DoCmd.RunCommand acCmdRecordsGoToNext
Loop
End Sub
Any help will be very much appreciated.