Results 1 to 5 of 5
  1. #1
    Whizbang is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    37

    Lebans Continuous Forms Control Tip - In Subform

    I am attempting to use this (http://www.lebans.com/conformscurcontrol.htm) in a continuous subform in Access 2010.



    I have a form with records, and a subform that displays records related to the parent record. I want to display dynamic controltip text on the subform, similar to how Lebans designed for a standard continuous form.

    It works fine as is until I need to scroll down in the subform. The class doesn't seem to recognize that the subform has scrolled, and so moving the mouse over the control will only display the controltip text for the first page of records.

    How can I get it to sense the subform scroll?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I am testing the sample db and it is worse than you describe. When over record 2 it shows record 1, when over record 1 it shows record 2, when over other 3 records it shows the previous record. And then doesn't recognize scroll action. I am very surprised Lebans product doesn't work. Maybe it has something to do with being built as mdb but running under A2007/A2010. I allowed Access to convert the db and got warning of conversion errors. Conversion didn't help. Sorry, no idea how to fix.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Whizbang is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    37
    Sorry, I forgot I had already fixed that.

    Find this (in the Private Sub ctlTextBox_MouseMove):
    Code:
    ' Calculate which row we are on adding in the ScrollBar Thumb offset.
    lngTemp = (sngY \ m_Form.Section(acDetail).Height) + lngRet -1
    and replace with this:
    Code:
    ' Calculate which row we are on adding in the ScrollBar Thumb offset.
    lngTemp = (sngY \ m_Form.Section(acDetail).Height) + lngRet
    At least, that seems to have fixed it.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Yes, that took care of one issue. I can only guess that something is wrong with fGetScrollBarPos or fIsScrollBar. I step debugged and fGetScrollBarPos always runs loop until hWndSB=-1 and exits function with fGetScrollBarPos set to False. The fIsScrollBar function is not finding vertical scrollbar and therefore returns -1 to fGetScrollBarPos.

    I step debug and hover over hWnd_VSB in line:
    If fGetClassName(hWnd_VSB) = "scrollBar" Then

    I see values like 5245074, 2296096, 2295962, etc.

    I step debug and Function fGetClassName returns a variety of strings, one of which is "NUIScrollbar"

    Change "scrollBar" to "NUIScrollbar" (or maybe LIKE "*scroll*" instead of =) and undo the other code edit.

    Very nice! Knew Lebans couldn't publish something that didn't work. Problem is probably Microsoft changing something with Access versions.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Whizbang is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    37
    Brilliant! Thanks so much for this!

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

Similar Threads

  1. Dlookup as control source on continuous form.
    By Ramun_Flame in forum Programming
    Replies: 4
    Last Post: 10-24-2012, 10:26 AM
  2. Replies: 3
    Last Post: 03-29-2012, 12:40 PM
  3. Replies: 1
    Last Post: 03-15-2012, 02:21 PM
  4. Replies: 2
    Last Post: 10-16-2009, 02:47 PM
  5. Replies: 3
    Last Post: 09-06-2008, 10:19 AM

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