Status Bar

chrisguk

Registered User.
Local time
Today, 09:24
Joined
Mar 9, 2011
Messages
148
Is there a step by step guide on how to create a status bar on the bottom of forms.

Im looking to incorporate "whosloggedin" & "date&time" & "computername"

Ay help is really appreciated

Thanks guys
 
There is no step by step guide but it is not hard to do.

1. Select the status bar activeX controls
attachment.php


2. Drag it into the form footer section and resize to the width of the form

3. Click on the properties of the activeX control

attachment.php


4. Add the panels you want to include in your status bar

  1. User Name
  2. {Variable}
  3. Computer
  4. {Variable}
  5. Access Level
  6. {Variable}

When the form opens you can define the contents of the panels (2, 4 & 6)

Me.StatusBar.Panel(2) = StrUserName
Me.StatusBar.Panel(4) = StrComputerName
Me.StatusBar.Panel(6) = StrAccessLevel
 

Attachments

  • StatusbarX.JPG
    StatusbarX.JPG
    41 KB · Views: 1,035
  • Panels.JPG
    Panels.JPG
    30.9 KB · Views: 651
Have I got this right or have I completely missed the point. God i feel like such a noob.

Code:
Private Sub Form_Load()
    Me.StatusBar6.Panel(2) = StrUserName
    Me.StatusBar6.Panel(4) = StrComputerName
    Me.StatusBar6.Panel(6) = StrAccessLevel
    chkScaleControls = True
    chkScaleColumns = True
    chkScaleFonts = True
End Sub

It throws out an error saying method or function not allowed.

I am assuming I dont actually type {variable} in every other box?
 
Which line is throwing the error?

Sorted, you missed the "s" off panel:

Me.StatusBar.Panels(2) = StrUserName

Just out of interest what is the thing for date and time but the time to continue to update automatically?
 
The date and time options are intrinsic and are updated automatically if one of your panels is using the time it ticks over for you.
 

Users who are viewing this thread

Back
Top Bottom