How to query several last names

Options
Hi,


I am a little stumped.  I need to pull historical information for 16 different people that don't necessarily have anything in common.  I tried building a query using "Last Name One of " and then listed the 16 last names.  This isn't working for me. 


How do I build a query that includes only the 16 (or close to it, I an weed out some that I don't need) individuals that I need?


Thank you in advance.

Comments

  • I've had the same thing happen - it works if you do "last name equals A" OR "last name equals B" OR etc.for all the last names.
  • So I would need to run 16 different queries and pull the information together in Excel? 


    I wish RE would expand on the Query List and let you add any field to it that is in RE.  Or develop a "picking" check box that you could go through and check only the names that you want included in the query.
  • I would create an export with the fields that you want for these constituents, and use the query you created with the 16 records in this export.

     
  • Joanie Rogers:

    So I would need to run 16 different queries and pull the information together in Excel? 


    I wish RE would expand on the Query List and let you add any field to it that is in RE.  Or develop a "picking" check box that you could go through and check only the names that you want included in the query.

    You will only need one query. Just use the Criteria "Last Name" multiple times and separate them by OR instead of AND.

  • Got it!  Thanks!!!!
  • Look up the 16 records and make note of the constituent ID.  Use those in the query.  You will get the select 16.
  • For this type of need and to capture Constituent Import IDs via VLOOKUP for spreadsheets I receive that don't include them, I periodically export ImportIDs, Preferred Addressee, Name, and Spouse Name for all constituents to Excel. For this particular question, I would add a checkbox column, mark each of the 16 names, filter to display only those, copy the ImportIDs, and paste them into a query.
  • JoAnn Strommen
    JoAnn Strommen ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    Elaine, that's what I would do too. smiley  Just glancing at the posts in the thread I thought maybe I'd missed something in original question.  To pull 16 records into a Specific Record one of... query would just take a minute or two. 


    As I tend to be a keyboard over mouse person, I just tab, F7, enter name, tab, F7...  This query is so, so easy.
  • I want to query 50 records and I have their record IDs but do not want to manually list all teh IDs using the One Of feature. May I import from excel?

     

  • JoAnn Strommen:

    Elaine, that's what I would do too. smiley  Just glancing at the posts in the thread I thought maybe I'd missed something in original question.  To pull 16 records into a Specific Record one of... query would just take a minute or two. 


    As I tend to be a keyboard over mouse person, I just tab, F7, enter name, tab, F7...  This query is so, so easy.

    You seem to be knowledgable - maybe you can suggest a way to do this quickly. I want to query 50 records and I have their record IDs but do not want to manually list all the IDs using the One Of feature. May I import from excel?  

  • One easy way to do this is to create an Update Import with the only field being the ConsID.  On the Summary tab, check the box that will create an output query of the records updated.  
  • JoAnn Strommen
    JoAnn Strommen ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    You can do a query > one of without manually entering the IDs. Just create your query, select one of and then you'll paste your IDs from your excel file.

    Here's link to how to: https://kb.blackbaud.com/articles/Article/41666


    Much easier than import in my opinion.
  • I agree, JoAnn, it is SO simple using this copy/paste technique!

Categories