Results 1 to 2 of 2
  1. #1
    watersn1 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2014
    Posts
    2

    How do you query an item in multiple fields?

    Hey guys, I'm having some trouble with my database. I am attemptiong to build a simple, only pulling data from one table. The table is a list of accounts managed by a wealth management firm, the advisors assigned to each account and their relative splits. The fields I am working with are titled: Current Account Value, Advisor 1, Advisor 1 Split, Advisor 2, Advisor 2 Split, Advisor 3, Advisor 3 split. My goal is to create a report based off of the query in which an advisor can enter his/her last name and the output will be their share of each account and their total money managed. (Note: An advisor can be listed under advisor 1, advisor 2, or advisor 3 dependent upon the account)



    I have set up a parameter under Advisor 1 (A1) to prompt the user to enter an advisor name. I want the query to show EVERY account a given advisor is listed on, regardless of whether they are listed as advisor one, two or three. While it seems to be working when the name is listed under advisor one, it will not pull up the advisor if they are listed as advisor two or three on an account. I’m trying to set it up so that the query pulls up ALL accounts a given advisor is listed on, not just accounts where they are listed as Advisor 1. In other words, I am trying to query an item, advisor name, in multiple fields. A snapshot of my query in design view is attached.

    Does anyone know how to fix this issue?
    Attached Thumbnails Attached Thumbnails Access Problem.png  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Would be an easy search if the data structure were normalized.

    Working with the current structure - put the same parameter under each of the name fields on a separate Criteria row in order to invoke the OR operator
    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. Multiple Item Lookup
    By Swiftrain in forum Forms
    Replies: 12
    Last Post: 04-29-2014, 03:27 PM
  2. Replies: 1
    Last Post: 04-12-2013, 03:03 PM
  3. Multiple item form from query to table
    By Jkwb in forum Access
    Replies: 13
    Last Post: 01-15-2013, 10:35 AM
  4. Replies: 12
    Last Post: 05-07-2012, 12:41 PM
  5. Combine one item fields in one field
    By romadm in forum Reports
    Replies: 7
    Last Post: 06-04-2010, 11:09 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