0 votes
in VBA by Beginner (11 points)


The code is in Access

The stripe progresses very nicely, but occasionally it flashes

Option Compare Database

Private Sub Form_Load()
    Me.TimerInterval = 1
End Sub

Private Sub Form_Timer()
    AAA = Me.אחוזים_נסתר
    Me.אחוזים_נסתר = AAA + (1 / Me.קצב)
    BBB = Me.אחוזים_נסתר
    Me.אחוז.Caption = Int(BBB) & " %"
    Me.התקדמות.Width = (Me.מסגרת.Width / 100) * BBB
    On Error Resume Next
    Me.התקדמות.Left = Me.מסגרת.Left + (Me.מסגרת.Width - Me.התקדמות.Width)
    If BBB >= 100 Then DoCmd.Close acForm, Me.Name
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Me.TimerInterval = 0
End Sub


Please log in or register to answer this question.

Welcome to wellsr Q&A
wellsr Q&A is the VBA and Python programming community that rewards you for learning how to code.

Getting Started
VBA Cheat Sheets (On Sale Now)

Earn free prizes for asking VBA and Python questions and for answering questions asked by others in our community.

Looking for something else? Hire our professional VBA Help, instead.

What makes us different?
Our points system rewards you with a chance for free gifts based on the quality of your questions and answers. All you have to do is post and you could get rewarded, like these members:

ParserMonster $25 Amazon Gift Card
Hightree $10 Amazon Gift Card
Thales1 $10 Amazon Gift Card
runfunke $10 Amazon Gift Card
coolag $10 Amazon Gift Card
Siew Hun $10 Amazon Gift Card

So, why don't you join us? It really is an encouraging way to motivate members in our VBA and Python community.


For more programming tips visit the VBA Tutorials Blog and the Python Tutorials Blog.