A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Progress Bar In Report



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2010, 08:18 AM posted to microsoft.public.access
zyus
external usenet poster
 
Posts: 210
Default Progress Bar In Report

I'm using access 2007 Tasks templates database.

In the report task assigned by to, is it possible to add/replace %complete
by "progress bar %" instead by number percentage.

Thanks
  #2  
Old May 24th, 2010, 04:55 PM posted to microsoft.public.access
Maarkr
external usenet poster
 
Posts: 240
Default Progress Bar In Report

this function should work if you work with it...I probably got this from one
of the MVP sites but not sure where.

Public Function PctMeter(varAmt As Variant, varTotal As Variant)
Dim sngPct As Single
sngPct = varAmt / varTotal
If sngPct = 1 Then
Me!baselbl.Caption = Int(sngPct * 100) & "%"
Me!lblmeter.Width = CLng(Me!baselbl.Width * sngPct)
Else
Me!baselbl.Caption = "Greater than 100% - Check your amounts"
Me!lblmeter.Width = CLng(Me!baselbl.Width * 1)
End If
Select Case sngPct
Case Is 0.15
Me!lblmeter.BackColor = 255
Case Is 0.5
Me!lblmeter.BackColor = 65535
Case Else
Me!lblmeter.BackColor = 65280
End Select
End Function

"zyus" wrote:

I'm using access 2007 Tasks templates database.

In the report task assigned by to, is it possible to add/replace %complete
by "progress bar %" instead by number percentage.

Thanks

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.