Am i even close? my bar stays gray whole time...
This is the button click event...
This is the button click event...
Code:
Me.myProgBar.Max = 1000
Me.myProgBar.Min = 1
Me.myProgBar.Value = i
With rst
Do Until rst.EOF
If IsNull(rst!ContactEmail) Then
rst.MoveNext
Else
Set objEmail = objOutlook.CreateItem(olMailItem)
objEmail.To = rst!ContactEmail
objEmail.subject = subject
objEmail.HTMLBody = strBody
objEmail.Send
Me.myProgBar.Value = i + 1
rst.MoveNext
End If
Loop