Results 1 to 4 of 4
  1. #1
    cherold is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    82

    Why can't I filter my form on this field?

    I have a form. In that form I have a field called "Media Type". If I right click on that while the media type is vinyl record, the context menu includes entries like "Equals Vinyl Record" and "Contains Vinyl Record". But selecting those doesn't actually filter anything. It still shows every single record regardless of media type.

    If I just right click and choose "text filters" and type in "Vinyl Record," then I get an error message that says "Enter a valid value." Since this combo box is based on an ID number in the main table matched to a table of media types, I even tried to put in appropriate id number "1", but while that didn't get an error, it unsurprisingly also gave me 0 records.



    What is the problem?
    Attached Thumbnails Attached Thumbnails accessfilterattempt.jpg  

  2. #2
    bgwool is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    29
    I'm no expert, but I think that function on the form may be attempting to filter the individual record rather than the record set it is based on, which won't be effective. Instead, you may want to create a query that pulls the records from a table, then filter the query through a function on a form.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I cannot replicate the issue. 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.

  4. #4
    cherold is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    82
    I figured it out. I had the field set as a text field instead of a numerical one. Changing that fixed the issue.

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

Similar Threads

  1. Replies: 6
    Last Post: 07-25-2014, 12:15 PM
  2. Filter email field on continuous form gives error
    By Ruegen in forum Programming
    Replies: 7
    Last Post: 10-10-2013, 09:31 PM
  3. Form Field Filter
    By michael.legge@rbc.com in forum Access
    Replies: 1
    Last Post: 05-09-2013, 02:52 PM
  4. Replies: 5
    Last Post: 03-15-2013, 10:53 PM
  5. Filter Report by Field in Form
    By SpdRacerX in forum Reports
    Replies: 3
    Last Post: 02-06-2012, 12:31 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