<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Cardbox &#187; Scan and Shred</title>
	<atom:link href="http://cardbox.wordpress.com/category/applications/scan-and-shred/feed/" rel="self" type="application/rss+xml" />
	<link>http://cardbox.wordpress.com</link>
	<description>Designing, building, selling and supporting a leading End User Database</description>
	<lastBuildDate>Wed, 27 May 2009 08:22:49 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='cardbox.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/175111b9cd5359f266000a5c47e37447?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Cardbox &#187; Scan and Shred</title>
		<link>http://cardbox.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cardbox.wordpress.com/osd.xml" title="Cardbox" />
		<item>
		<title>Partially duplicating a record</title>
		<link>http://cardbox.wordpress.com/2009/05/01/partially-duplicating-a-record/</link>
		<comments>http://cardbox.wordpress.com/2009/05/01/partially-duplicating-a-record/#comments</comments>
		<pubDate>Fri, 01 May 2009 13:40:50 +0000</pubDate>
		<dc:creator>cardbox</dc:creator>
				<category><![CDATA[Scan and Shred]]></category>

		<guid isPermaLink="false">http://cardbox.wordpress.com/?p=62</guid>
		<description><![CDATA[In a scan-and-shred type of database, I often find myself wanting to duplicate everything except the image or object field. For instance, I may be filing bank statements, where all the details are the same as last time except for the date and the scanned image itself. Here&#8217;s a macro that does this.

Set rec=ActiveRecord
AddRecord
Set recNew=ActiveRecord
For [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cardbox.wordpress.com&blog=31341&post=62&subd=cardbox&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In a scan-and-shred type of database, I often find myself wanting to duplicate everything except the image or object field. For instance, I may be filing bank statements, where all the details are the same as last time except for the date and the scanned image itself. Here&#8217;s a macro that does this.</p>
<blockquote>
<pre>Set rec=ActiveRecord
AddRecord
Set recNew=ActiveRecord
For Each fld In rec.Fields
 If fld.Definition.Type=cbxFieldTypeText Then
  recNew.Fields(fld.Definition.Name)=fld
  End If
 Next</pre>
</blockquote>
<p>I save this macro in the &#8220;This Database&#8221; section, under the name &#8220;Partial Duplicate&#8221;. Then, to make things easier for myself, I edit the native format of the database, do Tools &gt; Keyboard, and associate Ctrl+D with playing the &#8220;Partial Duplicate&#8221; macro. Since Ctrl+D is normally Cardbox&#8217;s own shortcut for File &gt; Duplicate Record, this means that I don&#8217;t have to change my typing habits.</p>
<p>One refinement: one of my fields, called NUMBER, has an auto-numbering validator in it. If I duplicate that field, the new record will have the same serial number as the old &#8211; which I don&#8217;t want. So I add the following line at the end of the macro:</p>
<blockquote>
<pre>recNew.Fields("NUMBER")=""</pre>
</blockquote>
<p>Now the field will be blanked out, and Cardbox will number it automatically when I save the record.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cardbox.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cardbox.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cardbox.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cardbox.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cardbox.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cardbox.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cardbox.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cardbox.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cardbox.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cardbox.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cardbox.wordpress.com&blog=31341&post=62&subd=cardbox&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cardbox.wordpress.com/2009/05/01/partially-duplicating-a-record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2aed1be59489a1610b340cba3dc73ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cardbox</media:title>
		</media:content>
	</item>
	</channel>
</rss>