Can anyone help me in using the Access ProgressBar. I want it to display while adding record from one recordset to another(approx 750000 records). It seems to start then stops moving, an example of code is shown below:
Do While rstTempF.EOF = False
'start progress bar
Forms!frmProgress.ProgressBar3 = rstTempF.PercentPosition
Forms!frmProgress.Repaint
With rstTempT
.AddNew
!intInvoiceNo = rstTempF("invno")
!txtUSI = Left(rstTempF("usi"), 12)
!txtPayUIN = Left(rstTempF("payuin"), 6)
!txtOrderUIN = Left(rstTempF("orduin"), 6)
!txtSiteID = Left(rstTempF("siteid"), 6)
!txtFSI = Left(rstTempF("fsi1"), 25)
!dteDateFrom = rstTempF("datefrom")
!dteDateTo = rstTempF("dateto")
!txtServiceCode = Left(rstTempF("svcecode"), 6)
!txtServiceDescription = Left(rstTempF("description"), 100)
!curCharge = rstTempF("charge")
!txtFeatureDescription = Left(rstTempF("f2"), 20)
.Update
End With
rstTempF.MoveNext
Loop
Do While rstTempF.EOF = False
'start progress bar
Forms!frmProgress.ProgressBar3 = rstTempF.PercentPosition
Forms!frmProgress.Repaint
With rstTempT
.AddNew
!intInvoiceNo = rstTempF("invno")
!txtUSI = Left(rstTempF("usi"), 12)
!txtPayUIN = Left(rstTempF("payuin"), 6)
!txtOrderUIN = Left(rstTempF("orduin"), 6)
!txtSiteID = Left(rstTempF("siteid"), 6)
!txtFSI = Left(rstTempF("fsi1"), 25)
!dteDateFrom = rstTempF("datefrom")
!dteDateTo = rstTempF("dateto")
!txtServiceCode = Left(rstTempF("svcecode"), 6)
!txtServiceDescription = Left(rstTempF("description"), 100)
!curCharge = rstTempF("charge")
!txtFeatureDescription = Left(rstTempF("f2"), 20)
.Update
End With
rstTempF.MoveNext
Loop