Results 1 to 3 of 3
  1. #1
    Xine is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    19

    How can I use 1 combo box as the filter source for 2 fields in a query?

    Originally, I had a working query where my [Organization] field had this criteria:


    Like "*" & [Forms]![frm_UserReport]![CboOrg] & ""

    It occurred to me that the value of the [cboOrg] could ALTERNATIVELY appear in the field [CharitableName] of the same query. Adding the same criteria as described above to [CharitableName] but placing it on the "OR" line doesn't work. What am I missing here?

    Thanks in advance!

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,188
    It will work, tho. You need quotes around strings....
    Like "'*" & [Forms]![frm_UserReport]![CboOrg] & "'"

  3. #3
    Xine is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    19
    I don't think that's it. I removed the criteria from [Organization] so its not competing with the criteria in [CharitableName] and it's still not working. Maybe it makes a difference that [CharitableName] is a field that more often appears empty whereas [Organization] always has content?

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

Similar Threads

  1. Replies: 2
    Last Post: 02-26-2015, 03:20 PM
  2. Replies: 1
    Last Post: 11-28-2013, 10:03 PM
  3. Replies: 11
    Last Post: 08-08-2013, 03:31 PM
  4. Replies: 7
    Last Post: 10-28-2012, 02:55 PM
  5. Replies: 14
    Last Post: 05-25-2012, 02:40 AM

Tags for this Thread

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