Results 1 to 4 of 4
  1. #1
    nndatabase is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    4

    Exclamation Mouse Over/Hover Over

    Can someone help me? I have a field called Project Code. When I mouse over the field I will like a small description of the Project to appear. This information will be pulled from another table.



    Can you tell me how to do that?

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    I would probably set the ControltipText property of the textbox in the current event of the form. You can use a recordset or DLookup() to get the description, using the currently displayed project as a criteria.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    nndatabase is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    4
    Thank you...however the ControptipText doesn't seem to allow for any coding but more static.
    The code I'm trying to write (Im still learnin VBA) is this.
    When I hover over the Project Code, I want to display the Project Name of the code.
    The Project Name is found in a table call tblNNNN Codes
    How would I write the Dlookup code?

    DLookup()

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Yes, I know, that's why I said I would set it in the current event of the form. This type of thing:

    Code:
    Private Sub Form_Current()
      Me.TextboxName.ControlTipText = DLookup(...)
    End Sub
    DLookup() syntax here:

    DLookup Usage Samples
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Mouse Hover Feature in Access 2010???
    By taimysho0 in forum Programming
    Replies: 2
    Last Post: 07-19-2012, 03:19 AM
  2. Replies: 2
    Last Post: 05-25-2012, 11:31 AM
  3. Flyoutbox on hover in Access?
    By mrfixit1170 in forum Programming
    Replies: 2
    Last Post: 10-06-2011, 07:19 AM
  4. Command Button Hover Issues
    By JeffG3209 in forum Database Design
    Replies: 6
    Last Post: 08-10-2011, 05:17 AM
  5. Creating a mouse hover event
    By Coffee in forum Forms
    Replies: 1
    Last Post: 07-17-2011, 11:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums