Results 1 to 4 of 4
  1. #1
    Eddy Sincere is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Location
    Carson City, NV
    Posts
    114

    One filter not working on an Allen Browne search form

    I built a filter form using the Allen Browne example and it works great except for one text box. I use both text and combo boxes for a total of 8 fields. The second field (

    I'm not getting any error codes and the field names are correct. I've attached some pics of the form, the form working correctly, the VBA code and the query.

    I've tried deleting the field and associated VBA line and inserting a new text box and VBA. My data properties are the same as other text boxes in the form.

    I've reviewed the query and everything seems in place. It's really basic.

    What am I missing?

    Form



    Click image for larger version. 

Name:	EmplyFlttr01.JPG 
Views:	11 
Size:	52.0 KB 
ID:	18248


    Form Design ("First" text box with field properties)

    Click image for larger version. 

Name:	EmplyFlttr02.JPG 
Views:	11 
Size:	135.3 KB 
ID:	18252


    VBA

    Click image for larger version. 

Name:	EmplyFlttr03.JPG 
Views:	11 
Size:	84.9 KB 
ID:	18250


    Query

    Click image for larger version. 

Name:	EmplyFlttr04.JPG 
Views:	11 
Size:	86.5 KB 
ID:	18251
    Attached Thumbnails Attached Thumbnails EmplyFlttr02.JPG  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    ID fields ...EmplyeeID are usu. numeric, if so, remove the single quote around the filter ' " & txtEmpID & " ' ". Quotes are only for strings.

    and
    you cant use LIKE without an asterisk. "[Activity] like '*" & cboActivity & "*'"

  3. #3
    Eddy Sincere is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Location
    Carson City, NV
    Posts
    114
    Got it. You're correct, I had the wrong quotes/asterisk. I knew it was something simple.

    Thanks for taking the time to answer. Problem resolved.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    If the parameter doesn't use wildcard with LIKE, might as well use = sign.

    Is EmplyID a number field? If yes, remove the apostrophe delimiters.

    Which field is the issue with?

    Do you have Lookup set in employee information table on any of the fields? What is actually saved into employee information table - ID or text? Do combobox RowSource have lookup? Is value of combobox an ID or actual text?
    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: 15
    Last Post: 11-20-2013, 04:30 PM
  2. Allen Browne GoHyperlink Module help
    By kagoodwin13 in forum Modules
    Replies: 3
    Last Post: 06-10-2013, 07:43 PM
  3. Allen Browne Ranking Sample?
    By kwooten in forum Queries
    Replies: 1
    Last Post: 05-17-2013, 04:42 PM
  4. Need a little help with Allen Browne code
    By NewtoIT in forum Programming
    Replies: 16
    Last Post: 05-09-2012, 04:50 PM
  5. Replies: 1
    Last Post: 08-18-2010, 02:05 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