rst.movefirst do while not rst.eof rst2=rst (là je chématise ...) progress.value=progress.value+1 rst.movenext loop
Private Sub Form_Load() Dim t As Long Centrage Me pbChargement.Value = 0 For t = 1 To Db.TableDefs("Detailprofil").RecordCount pbChargement.Value = pbChargement.Value + 1 Next t Unload Me End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub Form_Load() Dim t As Long Centrage Me pbChargement.Min = 0 pbChargement.Max = Db.TableDefs("Detailprofil").RecordCount For t = pbChargement.Min To pbChargement.Max pbChargement.Value = pbChargement.Value + 1 Next t End Sub
Private Sub Form_Load() Dim t As Long Centrage Me pbChargement.Min = 0 pbChargement.Max = Db.TableDefs("Detailprofil").RecordCount For t = pbChargement.Min To pbChargement.Max pbChargement.Value = pbChargement.Value + 1 DoEvents If pbChargement.Value = pbChargement.Max Then Exit Sub End If Next t End Sub