Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8001243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:02:44+00:00 2026-06-04T16:02:44+00:00

I’ve looked around and found a few VBA codes on how to grab the

  • 0

I’ve looked around and found a few VBA codes on how to grab the description out of the field’s “Description” box, but not how I can use that in a form’s properties.

I’d like to have a ControlTip appear with the Description of that field brought from the Description in the database, without having to rewrite all the descriptions; I’m hoping for a copy-paste bit of code that I can add to all controltips?

Something like (but obviously not)

ControlTipText:  Me.ThisControl.ThisControlFieldDescription

Anybody know of the code, or even if there is one?

EDIT:

description = Forms("frmTrials").Controls("txtBox").StatusBarText
MsgBox description

The above works to show the status bar text. However I’d like to fill “frmTrials” with the active form and “txtBox” with the currently active control; that way when the control becomes active I can put the StatusBarText into a “Description Box” text field (or the control tip, etc). I tried

description = Forms(Me).Controls(Me.ActiveControl).StatusBarText

which just threw errors at me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:02:45+00:00Added an answer on June 4, 2026 at 4:02 pm

    Ended up using a text field to show the descriptions instead of the control tip. I also have an informative photo appear (if there is one so named in the given folder). I should note that I do not have any handling in place for images which are not PNG format, though I’m sure that could be added.

    Public Function pushInfo(frm As Form)
    'On Error Resume Next
    Dim desc As String 'description from the status bar of the active control
    Dim path As String 'path to image
    Dim dbPath As String 'path to the database
    Dim hyperPath As String 'path to hyperlink
    
    'Take the statusbar text and push it into the description box caption.
    desc = Forms(frm.Name).Controls(frm.ActiveControl.Name).StatusBarText 'Put statusbar text into var "desc"
    frm.txtInfo.Caption = vbNewLine & vbNewLine & desc 'Put the text (with linefeeds) into the box
    frm.lblInfo.Caption = frm.ActiveControl.Name & " Description:" 'Put the database name of the field into the label
    
    'Set the image in the imgbox
    dbPath = Left(CurrentDb.Name, InStrRev(CurrentDb.Name, "\"))   'path to the DB.
    path = dbPath & "img\" 'add the img directory
    path = path & frm.Name & "\" 'add the form name
    path = path & frm.ActiveControl.Name 'add the control's name
    path = path & ".png" 'add the jpg suffix
    hyperPath = path
    
    If (Len(Dir(path)) = 0) Then 'if the image doesn't exist (this field has no image..)
        path = dbPath & "img\GenericLogo.png" 'set to the logo
        hyperPath = ""
    End If
    
    Forms(frm.Name).Controls("imgInfo").Picture = path 'set the picture to the defined path
    Forms(frm.Name).Controls("imgInfo").HyperlinkAddress = hyperPath 'set the picture to link to the file
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.