Progress bar based on percentage

A

Adnan

I have implemented a Progress bar explained on this article:
http://support.microsoft.com/kb/283030.
However, this is still not what I am looking for, what I need is a Progress
bar just like this one, but based on percentage field (bound Form with a
percentage field). Say, the percentage field is 80%, have the progress bar
show as such (80% progressed).

Anyone help, tip comments is much appreciated.
Adnan
 
A

Adnan

I see it is done with labels but this defiantly answers my question.

Thank you Daniel,
Adnan
 
A

Adnan

Thanks to a friend of mine Behar, here’s the answer of the question asked on
this post:

Assuming you inserted an ActiveX control (Insert>ActiveX>Microsoft
ProgressBar 6.0…). Double click on it, set Min 0 and Max 1.00 and then pase
the following code on the form.

‘----start of coe----
Private Sub Form_Current()
Call ChangeStatus
End Sub

Private Sub Percentage_AfterUpdate()
Call ChangeStatus
End Sub

Sub ChangeStatus()
Dim X As Single
X = Me.Percentage
If Me.Percentage > 1 Then X = 1
Me.ProgressBar0.Value = X
End Sub
‘----end of code----

Just thought I post it so the other will benefit.

Cheers,
Adnna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top