<?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>UC&#039;s Corner &#187; vba</title>
	<atom:link href="http://yussi.nl/index.php/category/vba/feed" rel="self" type="application/rss+xml" />
	<link>http://yussi.nl</link>
	<description>Yussi Ariefiyono</description>
	<lastBuildDate>Fri, 25 Jun 2010 12:57:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>display list of table from other database with DAO</title>
		<link>http://yussi.nl/index.php/display-list-of-table-from-other-database-with-dao.html</link>
		<comments>http://yussi.nl/index.php/display-list-of-table-from-other-database-with-dao.html#comments</comments>
		<pubDate>Thu, 08 Apr 2010 07:20:44 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[vba]]></category>
		<category><![CDATA[DAO.TableDef]]></category>
		<category><![CDATA[TableDef]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=88</guid>
		<description><![CDATA[this function will display list of table from other database, it come handy if you want to make a tool for inventory of all your db


Sub displayTable()
Dim dbs As Database
Dim otable As DAO.TableDef
Dim ItemName As String
Set dbs = OpenDatabase(&#8220;Db Name&#8221;)
For Each otable In dbs.TableDefs
If UCase(Left(otable.Name, 3)) &#60;&#62; &#8220;MSY&#8221; Then
ItemName = otable.Name
ItemName = Replace(ItemName, &#8220;,&#8221;, &#8220;&#8211;&#8221;)
debug.print <a href="http://yussi.nl/index.php/display-list-of-table-from-other-database-with-dao.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>this function will display list of table from other database, it come handy if you want to make a tool for inventory of all your db</p>
<div id="_mcePaste">
<blockquote>
<div id="_mcePaste">Sub displayTable()</div>
<div id="_mcePaste">Dim dbs As Database</div>
<div id="_mcePaste">Dim otable As DAO.TableDef</div>
<div id="_mcePaste">Dim ItemName As String</div>
<div id="_mcePaste">Set dbs = OpenDatabase(&#8220;Db Name&#8221;)</div>
<div id="_mcePaste">For Each otable In dbs.TableDefs</div>
<div id="_mcePaste">If UCase(Left(otable.Name, 3)) &lt;&gt; &#8220;MSY&#8221; Then</div>
<div id="_mcePaste">ItemName = otable.Name</div>
<div id="_mcePaste">ItemName = Replace(ItemName, &#8220;,&#8221;, &#8220;&#8211;&#8221;)</div>
<div id="_mcePaste">debug.print ItemName</div>
<div id="_mcePaste">ItemName = &#8220;&#8221;</div>
<div id="_mcePaste">End If</div>
<div id="_mcePaste">Next otable</div>
<div id="_mcePaste">Set otable = Nothing</div>
<div id="_mcePaste">Set dbs = Nothing</div>
<div id="_mcePaste">End Sub</div>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/display-list-of-table-from-other-database-with-dao.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access link table from different database with vba</title>
		<link>http://yussi.nl/index.php/access-link-table-from-different-database-with-vba.html</link>
		<comments>http://yussi.nl/index.php/access-link-table-from-different-database-with-vba.html#comments</comments>
		<pubDate>Thu, 08 Apr 2010 07:10:48 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[vba]]></category>
		<category><![CDATA[link table]]></category>
		<category><![CDATA[TableDef]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=86</guid>
		<description><![CDATA[Problem:
you have lots of database with link table in it, and in one time some of path are changed.. rather than change them manually,  i create function that can do that for me  
Solution:
In this function you can specify the link you want to find and replace it with your new link. it save <a href="http://yussi.nl/index.php/access-link-table-from-different-database-with-vba.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong><br />
you have lots of database with link table in it, and in one time some of path are changed.. rather than change them manually,  i create function that can do that for me <img src='http://yussi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Solution:</strong><br />
In this function you can specify the link you want to find and replace it with your new link. it save me lots of time..</p>
<div id="_mcePaste">
<blockquote>
<div id="_mcePaste">Function RelinkTable(setDB As String, FINDtext As String, REPLACEtext As String)</div>
<div id="_mcePaste">Dim dbs As Database</div>
<div id="_mcePaste">Dim Tdf As TableDef</div>
<div id="_mcePaste">Dim Tdfs As TableDefs</div>
<div id="_mcePaste"></div>
<div id="_mcePaste">Set dbs = OpenDatabase(setDB)</div>
<div id="_mcePaste">Set Tdfs = dbs.TableDefs</div>
<div id="_mcePaste">&#8216;Loop through the tables collection</div>
<div id="_mcePaste">For Each Tdf In Tdfs</div>
<div id="_mcePaste">If Tdf.SourceTableName &lt;&gt; &#8220;&#8221; And Tdf.Connect = &#8220;;DATABASE=&#8221; &amp; FINDtext Then   &#8216;if its the linktable</div>
<div id="_mcePaste">Tdf.Connect = &#8220;;DATABASE=&#8221; &amp; REPLACEtext &#8216;Set the new source</div>
<div id="_mcePaste">Tdf.RefreshLink &#8216;Refresh the link</div>
<div id="_mcePaste">End If</div>
<div id="_mcePaste">Next &#8216;Goto next table</div>
<div id="_mcePaste">Set dbs = Nothing</div>
<div id="_mcePaste">Set Tdfs = Nothing</div>
<div id="_mcePaste">End Function</div>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/access-link-table-from-different-database-with-vba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>comment block in vba msaccess</title>
		<link>http://yussi.nl/index.php/comment-block-in-vba-msaccess.html</link>
		<comments>http://yussi.nl/index.php/comment-block-in-vba-msaccess.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 13:35:06 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[msaccess]]></category>
		<category><![CDATA[vba]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=64</guid>
		<description><![CDATA[Enable the edit toolbar, hignlight lines to comment, and click the &#8220;comment block&#8221; icon on the edit toolbar (middle of toolbar). This will add the &#8216; to whatever you highlight.
]]></description>
			<content:encoded><![CDATA[<p>Enable the edit toolbar, hignlight lines to comment, and click the &#8220;comment block&#8221; icon on the edit toolbar (middle of toolbar). This will add the &#8216; to whatever you highlight.</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/comment-block-in-vba-msaccess.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of SendKeys</title>
		<link>http://yussi.nl/index.php/list-of-sendkeys.html</link>
		<comments>http://yussi.nl/index.php/list-of-sendkeys.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:40:50 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[vba]]></category>
		<category><![CDATA[sendkeys]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=53</guid>
		<description><![CDATA[


Key
Code


BACKSPACE
{BACKSPACE}, {BS}, or {BKSP}


BREAK
{BREAK}


CAPS LOCK
{CAPSLOCK}


DEL or DELETE
{DELETE} or {DEL}


DOWN ARROW
{DOWN}


END
{END}


ENTER
{ENTER}or ~


ESC
{ESC}


HELP
{HELP}


HOME
{HOME}


INS or INSERT
{INSERT} or {INS}


LEFT ARROW
{LEFT}


NUM LOCK
{NUMLOCK}


PAGE DOWN
{PGDN}


PAGE UP
{PGUP}


PRINT SCREEN
{PRTSC} (reserved for future use)


RIGHT ARROW
{RIGHT}


SCROLL LOCK
{SCROLLLOCK}


TAB
{TAB}


UP ARROW
{UP}


F1
{F1}


F2
{F2}


F3
{F3}


F4
{F4}


F5
{F5}


F6
{F6}


F7
{F7}


F8
{F8}


F9
{F9}


F10
{F10}


F11
{F11}


F12
{F12}


F13
{F13}


F14
{F14}


F15
{F15}


F16
{F16}


Keypad add
{ADD}


Keypad subtract
{SUBTRACT}


Keypad multiply
{MULTIPLY}


Keypad divide
{DIVIDE}






Key
Code


SHIFT
+


CTRL
^


ALT
%



]]></description>
			<content:encoded><![CDATA[<table style="height: 1074px;" width="373">
<tbody>
<tr valign="top">
<th width="50%">Key</th>
<th width="50%">Code</th>
</tr>
<tr valign="top">
<td width="50%">BACKSPACE</td>
<td width="50%">{BACKSPACE}, {BS}, or {BKSP}</td>
</tr>
<tr valign="top">
<td width="50%">BREAK</td>
<td width="50%">{BREAK}</td>
</tr>
<tr valign="top">
<td width="50%">CAPS LOCK</td>
<td width="50%">{CAPSLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">DEL or DELETE</td>
<td width="50%">{DELETE} or {DEL}</td>
</tr>
<tr valign="top">
<td width="50%">DOWN ARROW</td>
<td width="50%">{DOWN}</td>
</tr>
<tr valign="top">
<td width="50%">END</td>
<td width="50%">{END}</td>
</tr>
<tr valign="top">
<td width="50%">ENTER</td>
<td width="50%">{ENTER}or ~</td>
</tr>
<tr valign="top">
<td width="50%">ESC</td>
<td width="50%">{ESC}</td>
</tr>
<tr valign="top">
<td width="50%">HELP</td>
<td width="50%">{HELP}</td>
</tr>
<tr valign="top">
<td width="50%">HOME</td>
<td width="50%">{HOME}</td>
</tr>
<tr valign="top">
<td width="50%">INS or INSERT</td>
<td width="50%">{INSERT} or {INS}</td>
</tr>
<tr valign="top">
<td width="50%">LEFT ARROW</td>
<td width="50%">{LEFT}</td>
</tr>
<tr valign="top">
<td width="50%">NUM LOCK</td>
<td width="50%">{NUMLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">PAGE DOWN</td>
<td width="50%">{PGDN}</td>
</tr>
<tr valign="top">
<td width="50%">PAGE UP</td>
<td width="50%">{PGUP}</td>
</tr>
<tr valign="top">
<td width="50%">PRINT SCREEN</td>
<td width="50%">{PRTSC} (reserved for future use)</td>
</tr>
<tr valign="top">
<td width="50%">RIGHT ARROW</td>
<td width="50%">{RIGHT}</td>
</tr>
<tr valign="top">
<td width="50%">SCROLL LOCK</td>
<td width="50%">{SCROLLLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">TAB</td>
<td width="50%">{TAB}</td>
</tr>
<tr valign="top">
<td width="50%">UP ARROW</td>
<td width="50%">{UP}</td>
</tr>
<tr valign="top">
<td width="50%">F1</td>
<td width="50%">{F1}</td>
</tr>
<tr valign="top">
<td width="50%">F2</td>
<td width="50%">{F2}</td>
</tr>
<tr valign="top">
<td width="50%">F3</td>
<td width="50%">{F3}</td>
</tr>
<tr valign="top">
<td width="50%">F4</td>
<td width="50%">{F4}</td>
</tr>
<tr valign="top">
<td width="50%">F5</td>
<td width="50%">{F5}</td>
</tr>
<tr valign="top">
<td width="50%">F6</td>
<td width="50%">{F6}</td>
</tr>
<tr valign="top">
<td width="50%">F7</td>
<td width="50%">{F7}</td>
</tr>
<tr valign="top">
<td width="50%">F8</td>
<td width="50%">{F8}</td>
</tr>
<tr valign="top">
<td width="50%">F9</td>
<td width="50%">{F9}</td>
</tr>
<tr valign="top">
<td width="50%">F10</td>
<td width="50%">{F10}</td>
</tr>
<tr valign="top">
<td width="50%">F11</td>
<td width="50%">{F11}</td>
</tr>
<tr valign="top">
<td width="50%">F12</td>
<td width="50%">{F12}</td>
</tr>
<tr valign="top">
<td width="50%">F13</td>
<td width="50%">{F13}</td>
</tr>
<tr valign="top">
<td width="50%">F14</td>
<td width="50%">{F14}</td>
</tr>
<tr valign="top">
<td width="50%">F15</td>
<td width="50%">{F15}</td>
</tr>
<tr valign="top">
<td width="50%">F16</td>
<td width="50%">{F16}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad add</td>
<td width="50%">{ADD}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad subtract</td>
<td width="50%">{SUBTRACT}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad multiply</td>
<td width="50%">{MULTIPLY}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad divide</td>
<td width="50%">{DIVIDE}</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr valign="top">
<th width="50%">Key</th>
<th width="50%">Code</th>
</tr>
<tr valign="top">
<td width="50%">SHIFT</td>
<td width="50%">+</td>
</tr>
<tr valign="top">
<td width="50%">CTRL</td>
<td width="50%">^</td>
</tr>
<tr valign="top">
<td width="50%">ALT</td>
<td width="50%">%</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/list-of-sendkeys.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check if table is exist vba</title>
		<link>http://yussi.nl/index.php/check-if-table-is-exist-vba.html</link>
		<comments>http://yussi.nl/index.php/check-if-table-is-exist-vba.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:21:13 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[vba]]></category>
		<category><![CDATA[msaccess]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=50</guid>
		<description><![CDATA[Problem:
Check if table is exist
Solution:
Option Compare Database
Public Function TableExists(strTable As String) As Boolean
Dim strName As String
On Error Resume Next
&#8216;If table exists already then strName will be &#62; &#8220;&#8221;
strName = CurrentDb.TableDefs(strTable).name
TableExists = Not (strName = &#8220;&#8221;)
End Function
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:<br />
</strong>Check if table is exist</p>
<p><strong>Solution:</strong><br />
Option Compare Database<br />
Public Function TableExists(strTable As String) As Boolean<br />
Dim strName As String</p>
<p>On Error Resume Next<br />
&#8216;If table exists already then strName will be &gt; &#8220;&#8221;<br />
strName = CurrentDb.TableDefs(strTable).name<br />
TableExists = Not (strName = &#8220;&#8221;)<br />
End Function</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/check-if-table-is-exist-vba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell and AppActivate command vba</title>
		<link>http://yussi.nl/index.php/shell-and-appactivate-command-vba.html</link>
		<comments>http://yussi.nl/index.php/shell-and-appactivate-command-vba.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:16:37 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[vba]]></category>
		<category><![CDATA[AppActivate]]></category>
		<category><![CDATA[msaccess]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=48</guid>
		<description><![CDATA[Problem:
You want to open the file using send key, and active it as a window
Solution:
&#8216;Define the task ID
Dim dTaskID As Integer
&#8216;Open the file with your application
dTaskID = Shell(&#8220;applicationYouWantToOpenWith.EXE path+nameofthefile&#8221;)
&#8216;Make it active window
AppActivate (dTaskID)
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong><br />
You want to open the file using send key, and active it as a window</p>
<p><strong>Solution:</strong></p>
<p><em>&#8216;Define the task ID</em><br />
Dim dTaskID As Integer<br />
<em>&#8216;Open the file with your application</em><br />
dTaskID = Shell(&#8220;applicationYouWantToOpenWith.EXE path+nameofthefile&#8221;)<br />
<em>&#8216;Make it active window</em><br />
AppActivate (dTaskID)</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/shell-and-appactivate-command-vba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
