Notices



Reply
 
LinkBack Thread Tools Display Modes

Old 12-05-2006, 09:55 AM   #1 (permalink)
Junior Member

Join Date: May 2006
Posts: 11
Rep Power: 0 melissa.waldron is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- NetCommunity (BBNC)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)
- API/VBA

Finding info for organization contacts in a VBA Macro

I am working on an export macro that pulls information on an organization's constituent contacts. The export selects the name of the contact on an action (I really wish the system id of the contact would be a field we could export) and I want to pull various bits of information for that contact in VBA.

For each organization I am looping through the CIndividuals2 class to find the desired contact (the one whose name matches the data in the export field contact name). What field in CIndividuals2 will give me the system record id of the contact?

CIndividuals2 has two fields that look promising - INDIVIDUAL2_fld_CONSTITUENT_ID and INDIVIDUAL2_fld_CONSTIT_ID

I believe that INDIVIDUAL2_fld_CONSTIT_ID is the id for the organization. However if I use INDIVIDUAL2_fld_CONSTITUENT_ID I get a User Interrupt error when I run the macro, but not if I use INDIVIDUAL2_fld_CONSTIT_ID.

Any help would be greatly appreciated.
Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 12-06-2006, 05:28 AM   #2 (permalink)
Likes to customize RE!

DavidZ's Avatar

Join Date: Jul 2006
Location: London, UK
Posts: 335
Rep Power: 3 DavidZ is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- API/VBA

Hi Melissa,

I have not tested this but I am pretty sure that INDIVIDUAL2_fld_CONSTIT_ID is the system id and that INDIVIDUAL2_fld_CONSTITUENT_ID is the constituent id. You have to remember that some individuals in your CIndividuals2 collection are not going to be constituents and that the value for INDIVIDUAL2_fld_CONSTITUENT_ID will be blank in those cases. It could be that the error in your code is that you are not handling the blank values when they come in for the constituent id.

Feel free to contact me if you need any more help with this.

David
__________________
David Zeidman
Zeidman Development
http://www.zeidman.info

Check out my RE API blog
http://www.re-decoded.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
vba


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Loans - Loans - Mobile Phones - Credit Counseling
All times are GMT -6. The time now is 11:24 AM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64