<?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/"
	>

<channel>
	<title>nandeshwar.info &#187; Access</title>
	<atom:link href="http://nandeshwar.info/tag/access/feed/" rel="self" type="application/rss+xml" />
	<link>http://nandeshwar.info</link>
	<description></description>
	<lastBuildDate>Mon, 12 Dec 2011 21:33:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Linked Table Query Returning Incorrect Results</title>
		<link>http://nandeshwar.info/2010/08/18/linked-table-query-returning-incorrect-results/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linked-table-query-returning-incorrect-results</link>
		<comments>http://nandeshwar.info/2010/08/18/linked-table-query-returning-incorrect-results/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 19:24:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[linked tables]]></category>
		<category><![CDATA[ODBC]]></category>
		<category><![CDATA[SQL server]]></category>

		<guid isPermaLink="false">http://nandeshwar.info/?p=325</guid>
		<description><![CDATA[We had this annoying problem: a simple query in Access to a linked table (using ODBC and MS SQL server) returned incorrect results, though the same query returned correct results in MS SQL server. By incorrect I mean the field values were different, so rather than returning AZ, the query returned BZ (some other value [...]]]></description>
			<content:encoded><![CDATA[<p>We had this annoying problem: a simple query in Access to a linked table (using ODBC and MS SQL server) returned incorrect results, though the same query returned correct results in MS SQL server. By incorrect I mean the field values were different, so rather than returning AZ, the query returned BZ (some other value in that field).</p>
<p>We thought that it was a table size issue, may be the driver could not handle huge data. However, the problem was with the &#8220;unique record identifier&#8221; while linking the table, as JM reported <a href="http://bytes.com/topic/access/answers/209274-simple-query-linked-odbc-table-gives-wrong-results">here</a>. I did not have this problem any longer when I did not select any fields for the unique record identifier while linking the table.</p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2010/08/18/linked-table-query-returning-incorrect-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My experiments with sparklines</title>
		<link>http://nandeshwar.info/2009/09/23/my-experiments-with-sparklines/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-experiments-with-sparklines</link>
		<comments>http://nandeshwar.info/2009/09/23/my-experiments-with-sparklines/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 18:05:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[LaTex]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[report]]></category>
		<category><![CDATA[sparklines]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://nandeshwar.info/?p=293</guid>
		<description><![CDATA[For the uninitiated, Sparklines are &#8220;data-intense, design-simple, word-sized graphics&#8221; according to its inventor Edward Tufte. I always wanted to include them in my trend reports. The challenge: How and Which tool to use? The data came from this report came from a complex query using SQL server and Access that had this format: College Major [...]]]></description>
			<content:encoded><![CDATA[<p>For the uninitiated, <a title="Sparkline" href="http://en.wikipedia.org/wiki/Sparkline">Sparklines</a> are &#8220;data-intense, design-simple, word-sized graphics&#8221; according to its inventor <a title="Edward Tufte" href="http://en.wikipedia.org/wiki/Edward_Tufte">Edward Tufte</a>. I always wanted to include them in my trend reports. The challenge: How and Which tool to use?</p>
<p>The data came from this report came from a complex query using SQL server and Access that had this format:</p>
<table border="0">
<tbody>
<tr>
<td>College</td>
<td>Major</td>
<td>2005</td>
<td>2006</td>
<td>2007</td>
<td>2008</td>
<td>2009</td>
</tr>
<tr>
<td>A</td>
<td>B</td>
<td>10</td>
<td>15</td>
<td>14</td>
<td>18</td>
<td>25</td>
</tr>
</tbody>
</table>
<p>Some options I investigated and tried (be sure to read <a href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0000Lk">this page</a>, you might find many more):</p>
<ul>
<li>Google&#8217;s Chart API (<a href="http://code.google.com/apis/chart/types.html">http://code.google.com/apis/chart/types.html</a>): you can embed these in Google spreadsheets,  create HTML pages using <a href="http://www.cazh1.com/blogger/thoughts/2009/01/hacking-google-chart-api-from-excel.shtml">Excel via VBA</a>, or embed them in<a href="http://www.tushar-mehta.com/publish_train/xl_vba_cases/excel_google_chart_api/index.htm"> Excel sheets</a>. Alas, none would work the way I would like them to work: In-cell graphics</li>
<li> <a href="http://sparklines-excel.blogspot.com/">Use Sparklines for Excel add-in</a>: this add-in will create great in-cell charts (bar, bullet graphs, sparklines, etc), but copying them down is difficult and resource intensive, and any change you make in the column size will alter the shape of that chart. In addition, I had more than 400 rows to populate&#8211;these would be too many objects in a spreadsheet for Excel to handle. My machine froze when I tried to copy it for 10 rows.</li>
<li>Use R&#8217;s implementation by Jason Dieterle (search on <a href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0000Lk">this page</a> for Jason Dieterle (email), January 28, 2008. Works very good. I modified the code to print max and mins only, but the function generates a graphic, which needed to be embeded in LaTex file. It did not work nicely. Charts were too big to fit in a cell of a table.</li>
<li>Create bar charts in <a href="http://www.juiceanalytics.com/writing/lightweight-data-exploration-in-excel/">Excel using REPT function</a>. I tried different font sizes and styles, but it didn&#8217;t look pretty, for the range of data varied. (Hint: make the alignment of text 90, use pipe signs, create columns and graphs for each data value, remove gridlines, keep the columns very close. It almost worked.)</li>
<li>Use <a href="http://jblevins.org/projects/spark/">spark</a> package for LaTex, doesn&#8217;t work in pdflatex, and you have to play a lot with the settings</li>
<li>Use <a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/sparklines.html">sparklines </a>package for LaTex. Problem was that data needed to be normalized (or scaled) from 0 to 1, and needed extra parameters for min and max points. Solution: create a normalize function in Excel, and write a big formula to produce the exact needed string for the sparklines to work i.e.:<br />
<code>\begin{sparkline}{5}<br />
\sparkdot 1 1 blue<br />
\sparkdot 0.2 0 red<br />
\spark 0.2 0 0.4 0.0625 0.6 0.5625 0.8 0.75 1 1 /<br />
\end{sparkline}</code></li>
</ul>
<p>Here&#8217;s the normalize function:</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">Public</span> <span style="color: #000080;">Function</span> Normalize(cell2Normalize <span style="color: #000080;">As</span> Range, WholeRng <span style="color: #000080;">As</span> Range)
       Normalize = (cell2Normalize.Value - WorksheetFunction.Min(WholeRng)) / (WorksheetFunction.Max(WholeRng) - WorksheetFunction.Min(WholeRng))
<span style="color: #000080;">End</span> <span style="color: #000080;">Function</span></pre></div></div>

<p>Here&#8217;s the big formula to convert the range for data values from 2005 to 2009 (in the range E2:I2) to the sparkline LaTex environment.<br />
<code><br />
="\begin{sparkline}{5} " &amp; "\sparkdot " &amp; CHOOSE(MATCH(MAX(E2:I2),E2:I2,0),0.2,0.4,0.6,0.8,1) &amp; " " &amp; 1 &amp; " blue " &amp; "\sparkdot " &amp; CHOOSE(MATCH(MIN(E2:I2),E2:I2,0),0.2,0.4,0.6,0.8,1) &amp; " " &amp; 0 &amp; " red " &amp; " \spark 0.2 " &amp; Normalize(E2,E2:I2) &amp; " 0.4 " &amp; Normalize(F2,E2:I2) &amp; " 0.6 " &amp; Normalize(G2,E2:I2) &amp; " 0.8 " &amp; Normalize(H2,E2:I2) &amp; " 1 " &amp; Normalize(I2,E2:I2) &amp; " / \end{sparkline}"</code></p>
<p>This last option worked beautifully. I dragged the formula down. I selected the data, and clicked on &#8220;Convert Table to LaTex&#8221; button (using this<a href="http://dataninja.wordpress.com/2006/01/20/excel-to-latex/"> add-in</a>). Copied the LaTex code to clipboard and pasted it in my LaTex editor. Manually merged the rows for colleges (using \multirow), and generated a beautiful looking pdf.</p>
<p>I was very happy. Printed it in color. Got a request back very soon that there should be total rows.</p>
<p>I forgot about the sparklines and created a report in Access with plain old numbers in less than 15 mins. Gave it back.</p>
<p>I tried to repeat this &#8211; <a href="http://www.youtube.com/watch?v=EK73YYo0CUk">Sparkline in Cognos</a> -in Access with no luck.</p>
<p>(I later tried it one more time: Got the data in Excel using External data&gt; Access, created a pivottable with rows and all, did some formatting, copied and pasted values and formats, inserted sparkline code, converted it to LaTex, copied and pasted in LaTex editor, and here&#8217;s the beautiful looking <a href="http://nandeshwar.info/wp-content/uploads/2009/09/CollegeEnrSample.pdf">sample pdf</a> of 16)</p>
<p>I wish there were simple reporting solutions that included awesome data visualization tools. (BTW, Excel 2010 will have sparklines: <a href="http://blogs.msdn.com/excel/archive/2009/07/17/sparklines-in-excel.aspx">link</a>) For this report, I did try Sweave, R, and LaTex, but because of the time constraints I could not investigate it further.</p>
<p>Please comment if you know any other way which meet (or don&#8217;t, Tableau is certainly one) these conditions: inexpensive (read free), efficient,  and repeatable.</p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2009/09/23/my-experiments-with-sparklines/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The search key was not found in any record in Access</title>
		<link>http://nandeshwar.info/2009/09/15/the-search-key-was-not-found-in-any-record-in-access/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-search-key-was-not-found-in-any-record-in-access</link>
		<comments>http://nandeshwar.info/2009/09/15/the-search-key-was-not-found-in-any-record-in-access/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 20:07:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[Error messages]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Microsoft Jet]]></category>

		<guid isPermaLink="false">http://nandeshwar.info/?p=290</guid>
		<description><![CDATA[Well, I got this error message today while I was trying to import a text file: &#8220;The search key was not found in any record&#8221; After some research, I found that either it was a bug caused by Microsoft Jet 4.0 Service Pack or it was the size of the database (should be not greater [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I got this error message today while I was trying to import a text file:</p>
<blockquote><p>&#8220;The search key was not found in any record&#8221;</p></blockquote>
<p>After some research, I found that either it was a bug caused by <a href="http://support.microsoft.com/kb/301474">Microsoft Jet 4.0 Service Pack</a> or it was the size of the database (should be not greater than 2GB). It turned out to be the later one. I fixed this problem by compacting and resizing the database. In Access 2007, you click on the Office Button (Top Left Corner), then Manage &gt; Compact and Repair Database.</p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2009/09/15/the-search-key-was-not-found-in-any-record-in-access/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>The data on the Clipboard is damaged, so Microsoft Office Access can&#8217;t paste it.</title>
		<link>http://nandeshwar.info/2009/04/06/the-data-on-the-clipboard-is-damaged-so-microsoft-office-access-cant-paste-it/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-data-on-the-clipboard-is-damaged-so-microsoft-office-access-cant-paste-it</link>
		<comments>http://nandeshwar.info/2009/04/06/the-data-on-the-clipboard-is-damaged-so-microsoft-office-access-cant-paste-it/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:41:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Error messages]]></category>
		<category><![CDATA[Access]]></category>

		<guid isPermaLink="false">http://nandeshwar.info/?p=181</guid>
		<description><![CDATA[This is a new one for me. One good thing working with Excel and Access is the Copy/Paste ease between them. I usually paste data from Excel to Access for these two reasons: Create tables in Access (for small tables) Paste Field names: either in a table or in the import specs form When I [...]]]></description>
			<content:encoded><![CDATA[<p>This is a new one for me. One good thing working with Excel and Access is the Copy/Paste ease between them. I usually paste data from Excel to Access for these two reasons:</p>
<ol>
<li>Create tables in Access (for small tables)</li>
<li>Paste Field names: either in a table or in the import specs form</li>
</ol>
<p>When I am importing data of the web, usually they have field names and data types given that page, so it makes sense to import that table in Excel (using Import from Web option), and then copy the field names and directly paste them the import specs form in Access. However, I kept running in this error today, which <a href="http://support.microsoft.com/kb/958437">MS acknowledged and provided a solution</a>, caused due to a security patch.</p>
<p>I used a workaround to paste those field names: copy and paste the data in a text file, and the again copy and paste it in Excel.</p>
<p><strong>Solution Update</strong>: <a href="http://nandeshwar.info/2009/04/06/the-data-on-the-clipboard-is-damaged-so-microsoft-office-access-cant-paste-it/?preview=true&amp;preview_id=181&amp;preview_nonce=a7eb2a8fce#comment-1316"><span id="commentauthor-1316">Colleen</span></a> provided one more MS KB number to fix this problem. So, there are two KB articles which acknowledge this problem:</p>
<p>KB967699: <a href="http://support.microsoft.com/kb/967699">http://support.microsoft.com/kb/967699</a></p>
<p>KB958437: <a href="http://support.microsoft.com/kb/958437">http://support.microsoft.com/kb/958437</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2009/04/06/the-data-on-the-clipboard-is-damaged-so-microsoft-office-access-cant-paste-it/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Access Export to Excel (2007)</title>
		<link>http://nandeshwar.info/2009/03/02/access-export-to-excel-2007/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=access-export-to-excel-2007</link>
		<comments>http://nandeshwar.info/2009/03/02/access-export-to-excel-2007/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 18:54:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[Error messages]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[export]]></category>

		<guid isPermaLink="false">http://nandeshwar.info/?p=134</guid>
		<description><![CDATA[When I tried to export a table/query from Access 2007 to Excel 2007, I was getting this annoying error: You selected more records than can be copied onto the Clipboard at one time. Divide the records into two or more groups, and then copy and paste one group at a time. The maximum number of [...]]]></description>
			<content:encoded><![CDATA[<p>When I tried to export a table/query from Access 2007 to Excel 2007, I was getting this annoying error:</p>
<blockquote><p>You selected more records than can be copied onto the Clipboard at one time.  Divide the records into two or more groups, and then copy and paste one group at a time. The maximum number of records you can paste at one time is approximately 65,000.</p>
<div id="attachment_135" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-135" title="Access 2007 Export to Excel Error" src="http://nandeshwar.info/wp-content/uploads/2009/03/accesserror-300x77.jpg" alt="Access 2007 Export to Excel Error" width="300" height="77" /><p class="wp-caption-text">Access 2007 Export to Excel Error</p></div></blockquote>
<p>I was unable to understand the reason, because I thought Excel 2007 did not limit number of rows to 65,536. It turns out however that it is the clipboard limitation.</p>
<p><strong>Solution:</strong> If you check off the &#8220;export data with formatting and layout&#8221; option, Access exports successfully.</p>
<p>You can export successfully using Transferspreadsheet (VBA) option too.</p>
<p><a title="MS KB" href="http://support.microsoft.com/kb/924681" target="_self">Here is the KB from MS</a>.</p>
<p><strong>Solution Update:</strong>Thanks to <a href="http://nandeshwar.info/2009/03/02/access-export-to-excel-2007/#comment-1753">Brett</a>, it looks like that only if you export table/query using right click &gt; Export and have the checkbox cleared, then Access will export succesfully. That is what I always do, and it works for me. I have never tried External data option for exporting.</p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2009/03/02/access-export-to-excel-2007/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Excel Books</title>
		<link>http://nandeshwar.info/2007/09/06/excel-books/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=excel-books</link>
		<comments>http://nandeshwar.info/2007/09/06/excel-books/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 12:56:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Bill Jelen]]></category>
		<category><![CDATA[John Walkenbach]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2007/09/06/excel-books/</guid>
		<description><![CDATA[Books on my shelf: Professional Excel Development by Stephen Bullen, Rob Bovey This is by far the most authoritative book on Excel development from Add-ins to APIs. A word of caution though, it is not for the beginners. Excel Advanced Report Development by Timothy Zapawa Ever wondered on using Excel as a report development tool? [...]]]></description>
			<content:encoded><![CDATA[<p><!--noadsense--></p>
<div class="nobrtable">
<table border="0" width="100%">
<tbody>
<tr>
<td>
<div><span style="font-weight:bold;">Books on my shelf:</span></div>
</td>
<td></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Professional Excel Development by Stephen Bullen, Rob Bovey<br />
</span></p>
<p>This is by far the most authoritative book on Excel development from Add-ins to APIs. A word of caution though, it is not for the beginners.</td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0321262506&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Excel Advanced Report Development by Timothy Zapawa<br />
</span></p>
<p>Ever wondered on using Excel as a report development tool? This might be an answer to it; however, my problem with this book is that it focuses too much on pivottables, and because of that it doesn?t do justification to the name of the book. At any rate, this is very good book to exploit pivottable to its limits.</td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0764588117&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Excel 2007 Power Programming with VBA by John Walkenbach<br />
</span><br />
Of course, it cannot happen that you talk about Excel books and don?t mention <a href="http://www.j-walk.com/">Mr. Spreadsheet</a> himself. I am his fan on personal and professional level. On personal level, I love his <a href="http://www.j-walkblog.com/">blog</a>, and on professional level, I like his lucid language in his books. I recommend reading his books and blog both.</td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0470044012&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Excel 2003 Formulas by John Walkenbach<br />
</span></p>
<p>You thought you knew formulas? Just read this book and you?ll realize, which I do almost every day, that there just so much about Excel that we don?t know. John uses simple language, and introduces the readers from basic to advanced formulas. How advance you might ask, well, here is an <a href="http://j-walkblog.com/old/2004/12/18/">example</a>, which uses a formula similar to this:<br />
<a href="http://www.nandeshwar.info/projects/xlblog/uploaded_images/Jwalkcalender-728257.jpg"><img style="cursor:pointer;" src="http://www.nandeshwar.info/projects/xlblog/uploaded_images/Jwalkcalender-728254.jpg" border="0" alt="" /></a></td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0764540734&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Excel 2007 Formulas by John Walkenbach<br />
</span></td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0470044020&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td>
<div><span style="font-weight:bold;">Books I have Read:</span></div>
</td>
<td></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Data Analysis and Decision Making with Microsoft Excel by S. Christian Albright<br />
</span></p>
<p>I borrowed this book from the library. It is a very good for beginners.</td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0324662440&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Excel 2003 Power Programming with VBA by John Walkenbach<br />
</span></td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0764540726&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Integrating Excel and Access by Michael Schmalz<br />
</span><br />
I borrowed this book from the library too. Excellent reference on developing applications using Access, Excel, and VBA.</td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0596009739&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Mr Excel ON EXCEL by Bill Jelen<br />
</span></p>
<p>This is my first book I read on Excel, which is written by Bill Jelen aka Mr. Excel. Fantastic book. If you have begun knowing Excel just now, obtain a copy of this book right away. This is the right start for beginners. It uses very simple and clear language, and Bill provides great examples to make the learning useful.</td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0972425837&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td width="80%"><span style="font-weight:bold;">Guerilla Data Analysis Using Microsoft Excel by Bill Jelen<br />
</span></p>
<p>I had an e-version of this book, but for some reason it&#8217;s not working anymore. I had chewed on this book a lot. It?s a great book for starters, especially, in data crunching.</td>
<td width="20%"><iframe src="http://rcm.amazon.com/e/cm?t=myexanvbbl-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0972425802&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2007/09/06/excel-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access VBA: Convert Access tables to arff format</title>
		<link>http://nandeshwar.info/2007/07/18/access-vba-convert-access-tables-to-arff-format/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=access-vba-convert-access-tables-to-arff-format</link>
		<comments>http://nandeshwar.info/2007/07/18/access-vba-convert-access-tables-to-arff-format/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 20:37:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[Useful Procedures]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2007/07/18/access-vba-convert-access-tables-to-arff-format/</guid>
		<description><![CDATA[Weka, an open source data mining software, uses arff input data format. You can use this code to convert any Access table to arff format. Download the Access database with code: Convert2Arff.mdb This can very well be designed using forms, but this should get one started. Use Alt + F11 to see the code, then [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.waikato.ac.nz/ml/weka/">Weka</a>, an open source data mining software, uses <a href="http://www.cs.waikato.ac.nz/~ml/weka/arff.html">arff input data format</a>. You can use this code to convert any Access table to arff format. Download the Access database with code: <a href="http://nandeshwar.info/wp-content/uploads/Convert2Arff.mdb">Convert2Arff.mdb</a></p>
<p>This can very well be designed using forms, but this should get one started. Use Alt + F11 to see the code, then execute procedure ConvertTbl2Arff to convert a table.</p>
<p>Some highlights of this procedure<br />
- Takes care of spaces in Attribute name and data values<br />
- Finds unique values of nominal variables<br />
- Assigns equivalent ARFF datatype<br />
- Replaces missing values with question marks</p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2007/07/18/access-vba-convert-access-tables-to-arff-format/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Access VBA: Export Access tables using ODBC</title>
		<link>http://nandeshwar.info/2007/07/18/access-vba-export-access-tables-using-odbc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=access-vba-export-access-tables-using-odbc</link>
		<comments>http://nandeshwar.info/2007/07/18/access-vba-export-access-tables-using-odbc/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 20:28:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[Useful Procedures]]></category>
		<category><![CDATA[ODBC]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2007/07/18/access-vba-export-access-tables-using-odbc/</guid>
		<description><![CDATA[If you want to export Access tables using ODBC/DSN connections, use the following code. This procedure uses the File DSN and ODBC connection to export Access tables using DAO object TableDef. Sub ExportTbls() Dim sTblNm As String Dim sTypExprt As String Dim sCnxnStr As String, vStTime As Variant Dim db As Database, tbldef As DAO.TableDef [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to export Access tables using ODBC/DSN connections, use the following code. This procedure uses the File DSN and ODBC connection to export Access tables using DAO object TableDef.</p>
<div id="code"><span style="font-family: Courier;"><span style="color:#00007F;">Sub</span> ExportTbls()</span></p>
<p><span style="color:#00007F;"><span style="font-family: Courier;">Dim</span></span><span style="font-family: Courier;"> sTblNm <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span><br />
<span style="color:#00007F;">Dim</span> sTypExprt <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span><br />
<span style="color:#00007F;">Dim</span> sCnxnStr  <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span>, vStTime <span style="color:#00007F;">As</span> <span style="color:#00007F;">Variant</span><br />
<span style="color:#00007F;">Dim</span> db <span style="color:#00007F;">As</span> Database, tbldef <span style="color:#00007F;">As</span> DAO.TableDef</span></p>
<p><span style="color:#00007F;"><span style="font-family: Courier;">On</span></span><span style="font-family: Courier;"> <span style="color:#00007F;">Error</span> <span style="color:#00007F;">GoTo</span> ExportTbls_Error</span></p>
<p><span style="font-family: Courier;">sTypExprt = &#8220;ODBC Database&#8221; <span style="color:#007F00;">&#8216;Export Type</span><br />
sCnxnStr = &#8220;ODBC;DSN=DSNName;UID=userID;PWD=password&#8221; <span style="color:#007F00;">&#8216;Create the connection string</span></span></p>
<p><span style="font-family: Courier;">vStTime = Timer<br />
Application.Echo <span style="color:#00007F;">False</span>, &#8220;Visual Basic code is executing.&#8221;</span></p>
<p><span style="color:#00007F;"><span style="font-family: Courier;">Set</span></span><span style="font-family: Courier;"> db = CurrentDb()</span></p>
<p><span style="color:#007F00;"><span style="font-family: Courier;">&#8216;need a reference to Microsoft DAO 3.x library</span></span><span style="font-family: Courier;"><br />
<span style="color:#00007F;">For</span> <span style="color:#00007F;">Each</span> tbldef <span style="color:#00007F;">In</span> db.TableDefs<br />
<span style="color:#007F00;">&#8216;Don&#8217;t export System and temporary tables</span><br />
<span style="color:#00007F;">If</span> Left(tbldef.Name, 4)  &#8220;MSys&#8221; And Left(tbldef.Name, 4)  &#8220;~TMP&#8221; <span style="color:#00007F;">Then</span><br />
<span style="color:#007F00;">&#8216;Debug.Print tbldef.Name</span><br />
sTblNm = tbldef.Name<br />
DoCmd.TransferDatabase acExport, sTypExprt, sCnxnStr, acTable, sTblNm, sTblNm<br />
<span style="color:#00007F;">End</span> <span style="color:#00007F;">If</span><br />
<span style="color:#00007F;">Next</span> tbldef</span></p>
<p><span style="font-family: Courier;">MsgBox &#8220;Done! Time taken=&#8221; &amp; Timer &#8211; vStTime</span></p>
<p><span style="color:#00007F;"><span style="font-family: Courier;">On</span></span><span style="font-family: Courier;"> <span style="color:#00007F;">Error</span> <span style="color:#00007F;">GoTo</span> 0<br />
SmoothExit_ExportTbls:<br />
<span style="color:#00007F;">Set</span> db = <span style="color:#00007F;">Nothing</span><br />
Application.Echo <span style="color:#00007F;">True</span><br />
<span style="color:#00007F;">Exit</span> <span style="color:#00007F;">Sub</span></span></p>
<p><span style="font-family: Courier;">ExportTbls_Error:<br />
MsgBox &#8220;Error &#8221; &amp; Err.Number &amp; &#8221; (&#8221; &amp; Err.Description &amp; &#8220;) in procedure ExportTblsODST&#8221;<br />
<span style="color:#00007F;">Resume</span> SmoothExit_ExportTbls<br />
<span style="color:#00007F;">End</span> <span style="color:#00007F;">Sub</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2007/07/18/access-vba-export-access-tables-using-odbc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Access VBA: Delete tables from Access database</title>
		<link>http://nandeshwar.info/2007/07/18/access-vba-delete-tables-from-access-database/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=access-vba-delete-tables-from-access-database</link>
		<comments>http://nandeshwar.info/2007/07/18/access-vba-delete-tables-from-access-database/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 20:21:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[Useful Procedures]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2007/07/18/access-vba-delete-tables-from-access-database/</guid>
		<description><![CDATA[If you want to delete all or some of the tables from your Access database, you can use this DAO approach. You would need a reference to Microsoft DAO 3.x object library. As shown in the example, you can use an array to store the table names, which you want to keep or delete. Sub [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to delete all or some of the tables from your Access database, you can use this DAO approach. You would need a reference to Microsoft DAO 3.x object library. As shown in the example, you can use an array to store the table names, which you want to keep or delete.</p>
<div id="code"><font face="Courier"><span style="color:#00007F;">Sub</span> DelteTbls()<br /><span style="color:#00007F;">Dim</span> sTblNm <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span><br /><span style="color:#00007F;">Dim</span> db <span style="color:#00007F;">As</span> Database, tbldef <span style="color:#00007F;">As</span> DAO.TableDef<br /><span style="color:#00007F;">Dim</span> i <span style="color:#00007F;">As</span> <span style="color:#00007F;">Integer</span>, Arr <span style="color:#00007F;">As</span> <span style="color:#00007F;">Variant</span></p>
<p><span style="color:#00007F;">On</span> <span style="color:#00007F;">Error</span> <span style="color:#00007F;">GoTo</span> DelteTbls_Error<br /><span style="color:#007F00;">&#8216;You can use an array if you want to delete or not delete specific tables</span><br /><span style="color:#007F00;">&#8216;Arr = Array(&#8220;Table1&#8243;,&#8221;Table2&#8243;,&#8221;Table3&#8243;)</span></p>
<p><span style="color:#00007F;">Set</span> db = CurrentDb() <span style="color:#007F00;">&#8216;Set the database object</span></p>
<p><span style="color:#007F00;">&#8216;Set the warnings off to suppress messages</span><br />DoCmd.SetWarnings <span style="color:#00007F;">False</span></p>
<p><span style="color:#007F00;">&#8216;For i = 0 To UBound(Arr)</span><br />&#160;&#160;&#160;&#160;<span style="color:#00007F;">For</span> <span style="color:#00007F;">Each</span> tbldef <span style="color:#00007F;">In</span> db.TableDefs<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color:#007F00;">&#8216;here you can use equal to or not equal to delete or keep specific tables</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color:#007F00;">&#8216;If Left(tbldef.Name, 4) = Arr(i) Then</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color:#007F00;">&#8216;Don&#8217;t delete System or temporary tables</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color:#00007F;">If</span> Left(tbldef.Name, 4)  &#8220;MSys&#8221; And Left(tbldef.Name, 1)  &#8220;~&#8221; <span style="color:#00007F;">Then</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Debug.Print tbldef.Name<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sTblNm = tbldef.Name<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color:#007F00;">&#8216;Delete table</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;DoCmd.DeleteObject acTable, sTblNm<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color:#00007F;">End</span> <span style="color:#00007F;">If</span><br />&#160;&#160;&#160;&#160;<span style="color:#00007F;">Next</span> tbldef<br /><span style="color:#007F00;">&#8216;Next i</span></p>
<p>MsgBox &#8220;Done!&#8221;</p>
<p><span style="color:#00007F;">On</span> <span style="color:#00007F;">Error</span> <span style="color:#00007F;">GoTo</span> 0</p>
<p>SmoothExit_DelteTbls:<br />&#160;&#160;&#160;&#160;<span style="color:#00007F;">Set</span> db = <span style="color:#00007F;">Nothing</span><br />&#160;&#160;&#160;&#160;DoCmd.SetWarnings <span style="color:#00007F;">True</span><br />&#160;&#160;&#160;&#160;<span style="color:#00007F;">Exit</span> <span style="color:#00007F;">Sub</span></p>
<p>DelteTbls_Error:<br />&#160;&#160;&#160;&#160;MsgBox &#8220;Error &#8221; &amp; Err.Number &amp; &#8221; (&#8221; &amp; Err.Description &amp; &#8220;) in procedure DelteTbls&#8221;<br />&#160;&#160;&#160;&#160;<span style="color:#00007F;">Resume</span> SmoothExit_DelteTbls<br /><span style="color:#00007F;">End</span> <span style="color:#00007F;">Sub</span><br /></font></div>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2007/07/18/access-vba-delete-tables-from-access-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access VBA: Link all Dbase files from a folder</title>
		<link>http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=access-vba-link-all-dbase-files-from-a-folder</link>
		<comments>http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 20:19:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[Useful Procedures]]></category>
		<category><![CDATA[dbase]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/</guid>
		<description><![CDATA[If you would like to link all Dbase files, any linkable file for that matter, in MS Access, use the following code. I read somewhere that refreshing the links is slower than deleting and creating new links. Sub LinkAllTblsinDir() Dim sTblNm As String, sPath As String, sFileNm As String sPath = &#8220;C:\DW\&#8221; &#8216;Turn of the [...]]]></description>
			<content:encoded><![CDATA[<p>If you would like to link all Dbase files, any linkable file for that matter, in MS Access, use the following code. I read somewhere that refreshing the links is slower than deleting and creating new links.</p>
<div id="code"><span style="font-family: Courier;"><span style="color:#00007F;">Sub</span> LinkAllTblsinDir()<br />
<span style="color:#00007F;">Dim</span> sTblNm <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span>, sPath <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span>, sFileNm <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span><br />
sPath = &#8220;C:\DW\&#8221;<br />
<span style="color:#007F00;">&#8216;Turn of the Echo to avoid window repaint/refresh</span><br />
Application.Echo <span style="color:#00007F;">False</span></span></p>
<p><span style="font-family: Courier;">sFileNm = Dir(sPath, vbNormal)<br />
<span style="color:#00007F;">Do</span> <span style="color:#00007F;">While</span> sFileNm  &#8220;&#8221;<br />
<span style="color:#00007F;">If</span> Right(sFileNm, 3) = &#8220;dbf&#8221; <span style="color:#00007F;">Then</span><br />
sTblNm = Left(sFileNm, Len(sFileNm) &#8211; 4) <span style="color:#007F00;">&#8216;Extract the file name</span><br />
<span style="color:#007F00;">&#8216;Use the TransferDatabase option to link the tables from the specified directory</span><br />
<span style="color:#007F00;">&#8216;to your current Access DB</span><br />
DoCmd.TransferDatabase acLink, &#8220;dBase III&#8221;, sPath, acTable, sTblNm, sTblNm<br />
<span style="color:#00007F;">End</span> <span style="color:#00007F;">If</span><br />
sFileNm = Dir<br />
<span style="color:#00007F;">Loop</span></span></p>
<p><span style="font-family: Courier;">Application.Echo <span style="color:#00007F;">True</span><br />
<span style="color:#00007F;">End</span> <span style="color:#00007F;">Sub</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

