A
Alain
Hi, can anyone tell me why my loop is not moving to the next recordset
properly, I am always stuck to the same record
It is a very simple Do loop but seems I cannot make it work
Thanks
Set bds = CurrentDb
Set grs = bds.OpenRecordset("GrossMois")
With grs
Do Until grs.EOF
vendor = ![VendorNumber]
split = Nz(![SplitVc], 0)
Debug.Print vendor
Debug.Print split
Loop
End With
rst.Close
grs.Close
Set bds = Nothing
properly, I am always stuck to the same record
It is a very simple Do loop but seems I cannot make it work
Thanks
Set bds = CurrentDb
Set grs = bds.OpenRecordset("GrossMois")
With grs
Do Until grs.EOF
vendor = ![VendorNumber]
split = Nz(![SplitVc], 0)
Debug.Print vendor
Debug.Print split
Loop
End With
rst.Close
grs.Close
Set bds = Nothing