Im updates about 200 records from if then statements but I am having some loop problems. With this code here Acces is only updating the first record but if I take out currec.MoveNext im stuck in an ifanate loop.
Option Compare Database
Private Sub Command1_Click()
Dim curdb As Database, currec As DAO.Recordset
Set curdb = CurrentDb
Set currec = curdb.OpenRecordset("APFT Rollup")
Do Until currec.EOF
- If then statements here
currec.MoveNext
Loop
EndOfRecord:
currec.Close
End Sub