<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.blackbaud.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>VBA/API</title><link>http://forums.blackbaud.com/forums/20.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Debug Build: 20611.960)</generator><item><title>Re: Search for Constituents by bank account</title><link>http://forums.blackbaud.com/forums/thread/38751.aspx</link><pubDate>Fri, 09 Jan 2009 18:48:57 GMT</pubDate><guid isPermaLink="false">f90a95a0-00e2-4810-8af8-0bbdde08f853:38751</guid><dc:creator>Kevin Strange</dc:creator><slash:comments>0</slash:comments><comments>http://forums.blackbaud.com/forums/thread/38751.aspx</comments><wfw:commentRss>http://forums.blackbaud.com/forums/commentrss.aspx?SectionID=20&amp;PostID=38751</wfw:commentRss><description>&lt;p&gt;Eric,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ran into the same problem. We match on Cfin2 bank Route &amp;amp; bank Account. The api returns the full Route and a mask acct, so changed to match on the last 4 bank account.&lt;/p&gt;
&lt;p&gt;sWhereBranch = &amp;quot;Constituent_Bank.BRANCH_ID = &amp;quot; &amp;amp; lBankId&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oFins.Init moSc, , tvf_Fin2_CustomWhereClause, sWhereBranch, True&lt;/p&gt;
&lt;p&gt;For Each oFin In oFins&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFin2AccountLast4 = Right(oFin.Fields(FINANCIAL2_fld_ACCOUNT_NO), 4)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If sFin2AccountLast4 = sAccountLast4 Then...&lt;/p&gt;
&lt;p&gt;Hope that helps,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kevin Strange&lt;/p&gt;
&lt;p&gt;PCUSA&lt;/p&gt;</description></item><item><title>Search for Constituents by bank account</title><link>http://forums.blackbaud.com/forums/thread/37567.aspx</link><pubDate>Sun, 19 Oct 2008 16:58:38 GMT</pubDate><guid isPermaLink="false">f90a95a0-00e2-4810-8af8-0bbdde08f853:37567</guid><dc:creator>Eric Bracke</dc:creator><slash:comments>0</slash:comments><comments>http://forums.blackbaud.com/forums/thread/37567.aspx</comments><wfw:commentRss>http://forums.blackbaud.com/forums/commentrss.aspx?SectionID=20&amp;PostID=37567</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking for a way to find contstituents by their bank account.&lt;/p&gt;
&lt;p&gt;As off version 7.81 the account numbers are encrypted in the DB. &lt;br /&gt;Using the standard CustomWhereClause doesn&amp;#39;t work because it queries the raw (encrypted) data.&lt;/p&gt;
&lt;p&gt;Is there a way to encrypt the plain text (account no) and pass that in the customwhereclause ?&lt;br /&gt;Or another filter object&amp;nbsp;where I can give the account no in plain text as a parameter that returns a constituent collection ?&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item></channel></rss>