Results 1 to 6 of 6
  1. #1
    KyleMac is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Posts
    10

    Continuous Form unclickable once filtered

    New here but I've been playing with MS Access for a few years. I recently ran into an issue I cannot seem to solve or find an answer to.



    I have created a form that filters information from a table via combo boxes and check boxes. The data all filters beautifully but I cannot click on most of the data once it is filtered. When no filter is in place I can click on anything. I need to be able to click on the data because they are text boxes and when clicked on I need it to open a form based off which is clicked. The first .jpg is the design view of the form. Second image is what things look like while mostly working.

    Edit: I neglected to mention I can click on the first item filtered, but all others just "refresh" the form when I try to click on them. If nothing is filtered I can click on anything.

    Click image for larger version. 

Name:	frmFilter.jpg 
Views:	6 
Size:	107.1 KB 
ID:	18758

    Click image for larger version. 

Name:	frmFilter_example.jpg 
Views:	7 
Size:	174.9 KB 
ID:	18760
    Last edited by KyleMac; 11-17-2014 at 02:37 AM. Reason: Clarification

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    All looks good. Need to see code and form properties.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    KyleMac is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Posts
    10
    Quote Originally Posted by June7 View Post
    All looks good. Need to see code and form properties.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    As suggested:
    Spell Compendium v4.zip

    edit: Fixed uploaded version (the other one was my test file where I was playing with settings to try and get it to work)

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    I would use just AfterUpdate events of input controls. I have never used Change event. It fires after each typed character in box.

    I don't think should use Requery in each event - there are no parameters to requery for since the RecordSource is not a dynamic parameterized query. Need to call filter code. Put the filter code in a Sub that can be called by each event. Although not sure why it would be needed in Current event.
    Code:
    Private Sub School_Change()
        Call SetFilter
    End Sub
    
    Private Sub Form_Current()
        Call SetFilter
    End Sub
    
    Private Sub SetFilter()
    ...
    End Sub
    Me.Form is not necessary but doesn't hurt - Me. is adequate, as in:

    Me.Requery
    Me.Repaint (should this have been Requery?)
    Me.InsideHeight

    I would open the SpellDescription form with:
    Code:
    Private Sub Names_DblClick(Cancel As Integer)
        DoCmd.OpenForm "SpellDescription", , , "Spellname='" & Me.Spellname & "'", acFormEdit
    End Sub
    And eliminate the filter code in SpellDescription open event:
    Code:
    Private Sub Form_Open(Cancel As Integer)
        Me.SpellNames = Me!Spellname
    End Sub
    Why not have combobox on SpellDescription for selecting Spellname?

    However, even after these changes, the issue persists. Records are not selectable after filter is applied. I was right about the Current event. Got rid of it and now it all works.
    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
    KyleMac is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Posts
    10
    You got it before I edited the .zip file. I was playing around with different ideas to try and fix it, that's why one was .repaint. Thanks for the optimization suggestions as well! Working thanks to your suggestions, learned some things too, thanks!

    There are soooo many spells (that's why SpellDescription doesn't have a combobox). I actually hid the textbox and made the caption change to whatever spell had been clicked on to clean up the look of it.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    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.

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

Similar Threads

  1. Replies: 13
    Last Post: 04-16-2014, 10:11 AM
  2. Filtered Report from filtered datasheet form
    By gemadan96 in forum Reports
    Replies: 7
    Last Post: 01-03-2014, 05:12 PM
  3. More than One Record on filtered Continuous Form
    By Williams485 in forum Forms
    Replies: 3
    Last Post: 03-13-2013, 04:56 AM
  4. Buttons Unclickable Anymore
    By netchie in forum Access
    Replies: 7
    Last Post: 09-14-2011, 11:06 AM
  5. Replies: 1
    Last Post: 07-30-2011, 03:21 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