<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;C0UGQnY_eyp7ImA9WhRXF00.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851</id><updated>2011-12-23T20:33:43.843-08:00</updated><title>tutorial application</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;C0UGQnY-fCp7ImA9WhRXF00.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-3904773421147951505</id><published>2011-12-23T20:33:00.000-08:00</published><updated>2011-12-23T20:33:43.854-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:33:43.854-08:00</app:edited><title>Database Access with the Data Control</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family: Arial;"&gt;STEPS:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;1.         Open a new Visual Basic project.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: .5in; text-indent: -.5in;"&gt;&lt;span style="font-family: Arial;"&gt;2.         Put a data control (an intrinsic control, located in the VB toolbox) on the form and set the properties as follows:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: .5in; text-indent: -.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="center"&gt;  &lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; margin-left: .5in;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.2in;" valign="top" width="115"&gt;   &lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;Property&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-left: none; border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 184.5pt;" valign="top" width="246"&gt;   &lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;Value&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-top: none; border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.2in;" valign="top" width="115"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;(Name)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; padding: 0in 5.4pt 0in 5.4pt; width: 184.5pt;" valign="top" width="246"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt; datAuthors&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-top: none; border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.2in;" valign="top" width="115"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;Caption&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; padding: 0in 5.4pt 0in 5.4pt; width: 184.5pt;" valign="top" width="246"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;Use the arrows to   view the data&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-top: none; border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.2in;" valign="top" width="115"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;Connect&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; padding: 0in 5.4pt 0in 5.4pt; width: 184.5pt;" valign="top" width="246"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;Access &lt;i&gt;(default)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-top: none; border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.2in;" valign="top" width="115"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;DatabaseName&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; padding: 0in 5.4pt 0in 5.4pt; width: 184.5pt;" valign="top" width="246"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;..\biblio.mdb&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-top: none; border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.2in;" valign="top" width="115"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;DefaultType&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; padding: 0in 5.4pt 0in 5.4pt; width: 184.5pt;" valign="top" width="246"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;UseJet &lt;i&gt;(default)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-top: none; border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.2in;" valign="top" width="115"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;RecordSource&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; padding: 0in 5.4pt 0in 5.4pt; width: 184.5pt;" valign="top" width="246"&gt;   &lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;Authors &lt;i&gt;(choose   from list)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: .5in;"&gt;&lt;span style="font-family: Arial;"&gt;Notes:  When you use the Data Control in a project, the properties that must be set are &lt;b&gt;DatabaseName&lt;/b&gt; and &lt;b&gt;RecordSource,&lt;/b&gt; in that order.  &lt;b&gt;DatabaseName&lt;/b&gt;  is the name of the database you want to use, and the &lt;b&gt;RecordSource&lt;/b&gt; is the name of the table in that database that you want to use.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-3904773421147951505?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/3904773421147951505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/database-access-with-data-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/3904773421147951505?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/3904773421147951505?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/database-access-with-data-control.html' title='Database Access with the Data Control'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Ck4DSHk4eyp7ImA9WhRXF00.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-5166285834904853214</id><published>2011-12-23T20:29:00.000-08:00</published><updated>2011-12-23T20:29:39.733-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:29:39.733-08:00</app:edited><title>Visual Basic &amp; ADO Tutorial</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="MsoNormal"&gt; &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;About this Tutorial&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;This tutorial presents three small sample applications using &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;. All three applications use a local MS Access database.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt; &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The first sample application introduces the ADO Data Control (ADODC) which demonstrates a "quick and dirty" way to connect to a remote database. The second and third applications use &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; code: the second allows navigation and searching of a database table; the third allows navigation and updating on a database table. All three connect to an ODBC Data Source, which must be set up through the Windows Control Panel. How to do this is described below.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Follow the steps below to set up an ODBC Data Source (this process is also called "setting up a DSN", where "DSN" stands for "Data Source Name"). These steps assume Windows 2000 for the operating system. On other versions of Windows, some steps may vary slightly.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Via Windows &lt;strong&gt;Control Panel&lt;/strong&gt;, double-click on &lt;strong&gt;Administrative Tools&lt;/strong&gt;, then &lt;strong&gt;Data Sources (ODBC)&lt;/strong&gt;. The &lt;strong&gt;ODBC Data Source Administrator &lt;/strong&gt;screen is displayed, as shown below. Click on the &lt;strong&gt;System DSN&lt;/strong&gt; tab.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="380" src="http://www.vb6.us/files/VBPrograms/UsingADO/image001.jpg" width="461" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Click the &lt;strong&gt;Add&lt;/strong&gt; button. The &lt;strong&gt;Create New Data Source&lt;/strong&gt; dialog box will appear. Select &lt;strong&gt;Microsoft Access Driver (*.mdb)&lt;/strong&gt; from the list and click the &lt;strong&gt;Finish&lt;/strong&gt; button.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="348" src="http://www.vb6.us/files/VBPrograms/UsingADO/image002.jpg" width="468" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The &lt;strong&gt;ODBC Microsoft Access Setup&lt;/strong&gt; dialog box will appear. For &lt;strong&gt;Data Source Name&lt;/strong&gt;, type &lt;strong&gt;Biblio&lt;/strong&gt;. If desired, you can type an entry for &lt;strong&gt;Description&lt;/strong&gt;, but this is not required.&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="315" src="http://www.vb6.us/files/VBPrograms/UsingADO/image003.jpg" width="471" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Click the &lt;strong&gt;Select&lt;/strong&gt; button. The &lt;strong&gt;Select Database&lt;/strong&gt; dialog box appears. On a default installation of VB6 or Visual Studio 6, the &lt;strong&gt;BIBLIO.MDB&lt;/strong&gt; sample database should reside in the folder &lt;strong&gt;C:\Program Files\Microsoft Visual Studio\VB98&lt;/strong&gt;. Navigate to that folder, select BIBLIO.MDB from the file list, and click &lt;strong&gt;OK&lt;/strong&gt;. &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="246" src="http://www.vb6.us/files/VBPrograms/UsingADO/image004.jpg" width="402" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            Note: If VB was installed in a different location on your system, navigate to the appropriate folder. If you do not have the BIBLIO.MDB sample database file on your system at all, you can download it &lt;a href="http://www.vb6.us/files/VBPrograms/BIBLIO.zip"&gt;here&lt;/a&gt;. In that case, copy the file to the folder of your choice, and navigate to that folder to select the database for this step.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;When you are returned to the ODBC Microsoft Access Setup screen, the database you selected should be reflected as shown below. Click OK to dismiss this screen.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="315" src="http://www.vb6.us/files/VBPrograms/UsingADO/image005.jpg" width="471" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;When you are returned to the ODBC Data Source Administrator screen, the new DSN should appear as shown below. Click OK to dismiss this screen.&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="380" src="http://www.vb6.us/files/VBPrograms/UsingADO/image006.jpg" width="461" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;At this point, the Biblio database is ready to be used with RDO in the sample application.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;a href="" name="SAMP_APP_1" title="SAMP_APP_1"&gt;&lt;/a&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sample Application 1: Using the &lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; Data Control (ADODC)&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;To build the first sample application, follow the steps below.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Start a new VB project, and from the &lt;strong&gt;Components&lt;/strong&gt; dialog box (invoked from the &lt;strong&gt;Project -&amp;gt; Components&lt;/strong&gt; menu), select &lt;strong&gt;Microsoft ADO Data Control 6.0 (SP&lt;em&gt;x&lt;/em&gt;)&lt;/strong&gt; as shown below and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;img alt="" border="0" height="407" src="http://www.vb6.us/files/VBPrograms/UsingADO/image007.jpg" width="455" /&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The ADO Data Control should appear in your toolbox as shown below:&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;img alt="" border="0" height="418" src="http://www.vb6.us/files/VBPrograms/UsingADO/image008.jpg" width="128" /&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Put an ADO Data Control on your form, and set the properties as follows:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 23.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2in;" valign="top" width="192"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Property&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 383.4pt;" valign="top" width="511"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Value&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2in;" valign="top" width="192"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 383.4pt;" valign="top" width="511"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adoBiblio&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2in;" valign="top" width="192"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;DataSourceName&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 383.4pt;" valign="top" width="511"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Biblio&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2in;" valign="top" width="192"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;SQL&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 383.4pt;" valign="top" width="511"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;select *    from authors&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;                                &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoBodyText" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Now put three text boxes on the form, and set their Name, DataSource, and DataField properties as follows:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 23.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2.5in;" valign="top" width="240"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;DataSource&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 2.45in;" valign="top" width="235"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;DataField&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.5in;" valign="top" width="240"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtAuthor&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adoBiblio&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 2.45in;" valign="top" width="235"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Author&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.5in;" valign="top" width="240"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtAuID&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adoBiblio&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 2.45in;" valign="top" width="235"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Au_ID&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.5in;" valign="top" width="240"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtYearBorn&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adoBiblio&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 2.45in;" valign="top" width="235"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Year Born&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Save and run the program.  Notice how it works just like the other data control.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Now change the SQL property of the data control to &lt;strong&gt;select * from authors order by author &lt;/strong&gt;and run the program again.  Notice the difference.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Change the SQL property back to what it was and add three command buttons to the form, and set their Name and Caption properties as follows:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 23.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2.5in;" valign="top" width="240"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Caption&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.5in;" valign="top" width="240"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdNameOrder&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Order by &lt;u&gt;N&lt;/u&gt;ame&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.5in;" valign="top" width="240"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdYearOrder&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Order by &lt;u&gt;Y&lt;/u&gt;ear&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.5in;" valign="top" width="240"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdIDOrder&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Order by &lt;u&gt;I&lt;/u&gt;D&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Put the following code in the &lt;strong&gt;cmdNameOrder_Click&lt;/strong&gt; event:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;adoBiblio.SQL = "select * from authors order by author"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="text-indent: 0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;adoBiblio.Refresh&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Put the following code in the &lt;strong&gt;cmdYearOrder_Click&lt;/strong&gt; event:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;adoBiblio.SQL = "select * from authors order by [year born]"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="text-indent: 0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;adoBiblio.Refresh&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Put the following code in the &lt;strong&gt;cmdIDOrder_Click &lt;/strong&gt;event:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="text-indent: 0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;adoBiblio.SQL = "select * from authors order by au_id"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="text-indent: 0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;adoBiblio.Refresh&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Save and run the program and see what happens when you click the buttons.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;A screen-shot of the sample app at run-time is shown below:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="332" src="http://www.vb6.us/files/VBPrograms/UsingADO/image009.jpg" width="348" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Download the project files for this sample application &lt;a href="http://www.vb6.us/files/VBPrograms/UsingADO/SampleApp1.zip"&gt;here&lt;/a&gt;.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sample Applications 2 and 3: Using &lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; Code&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Note: If you have previously downloaded and set up a DSN for the Property database as described in the previous topic on RDO, you can skip the set up steps below and resume &lt;a href="http://www.vb6.us/tutorials/database-access-ado-vb6-tutorial#SAMP_APP_2"&gt;here&lt;/a&gt;.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sample applications 2 and 3 use a database called &lt;strong&gt;PROPERTY.MDB&lt;/strong&gt; and can be downloaded &lt;a href="http://www.vb6.us/files/VBPrograms/Property.zip"&gt;here&lt;/a&gt;.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The Property database contains just one table called "Property". The columns of this table are defined as follows:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Column Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Data Type&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Notes&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;PROPNO&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Long Integer)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;A number    that uniquely identifies the property in the table. Should be treated as the    Primary Key (although it is not defined as such in the sample database).&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;EMPNO&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Long Integer)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;A number    that identifies the real estate agent selling the property. In a real system,    this would be the foreign key to the employee number in an Employee table    (such a table is not present in the sample database).&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADDRESS&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Text (20)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The    street address of the property.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;CITY&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Text (15)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The city    where the property is located.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;STATE&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Text (2)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The state    where the property is located (2-character &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;US&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; state abbreviation).&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;ZIP&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Text (5)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The zip    code where the property is located.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;NEIGHBORHOOD&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Text (15)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The    descriptive name of the neighborhood in which the property is located.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;HOME_AGE&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Long Integer)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Age in    years of the home. (A better table design choice would be to have this field    be the date in which the property was built and have the application compute    the age based on the current date.)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;BEDS&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Long Integer)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number of    bedrooms in the property.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;BATHS&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Single)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number of    bathrooms in the property (allows for a decimal value such as 2.5, indicating    2 ½ bathrooms – i.e. 2 full bathrooms and 1 "powder room").&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;FOOTAGE&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Long Integer)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The    footage of the property.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;ASKING&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Long Integer)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Asking    price of the property in whole dollars.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;BID&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Long Integer)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Bid    amount of the potential buyer in whole dollars.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.7in;" valign="top" width="163"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;SALEPRICE&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Number    (Long Integer)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 286.2pt;" valign="top" width="382"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sale&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; price (amount the property    actually sold for) in whole dollars.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt; &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Before coding or running sample application 2 or 3, you must set up an ODBC data source as was done for the previous sample application.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;After downloading the file, move it to the folder of your choice. Then follow the exact same steps as before to set up the DSN, with these two exceptions:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;(1)        On the &lt;strong&gt;ODBC Microsoft Access Setup&lt;/strong&gt; dialog box, type &lt;strong&gt;PropDB&lt;/strong&gt; for the &lt;strong&gt;Data Source Name&lt;/strong&gt;. &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;(2)        In the &lt;strong&gt;Select Database&lt;/strong&gt; dialog box, navigate to the location where you have placed the &lt;strong&gt;PROPERTY.MDB&lt;/strong&gt; file.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;a href="" name="SAMP_APP_2" title="SAMP_APP_2"&gt;&lt;/a&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sample Application 2&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;To build Sample Application 2,  start a new VB project and perform the following steps.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;From the &lt;strong&gt;Project -&amp;gt; References&lt;/strong&gt; menu, check &lt;strong&gt;Microsoft ActiveX Data Objects 2.&lt;em&gt;x&lt;/em&gt;&lt;/strong&gt; (where x is the highest version that you have on your system) and click OK.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-size: 10pt;"&gt;&lt;img alt="" border="0" height="360" src="http://www.vb6.us/files/VBPrograms/UsingADO/image010.jpg" width="449" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;strong&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;This project uses the StatusBar control, so include the &lt;strong&gt;Microsoft Windows Common Controls 6.0&lt;/strong&gt; &lt;strong&gt;(SP6)&lt;/strong&gt; from the &lt;strong&gt;Components&lt;/strong&gt; dialog box, accessed from the &lt;strong&gt;Project -&amp;gt; Components&lt;/strong&gt; menu.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;strong&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;strong&gt;&lt;span style="font-size: 10pt;"&gt;&lt;img alt="" border="0" height="407" src="http://www.vb6.us/files/VBPrograms/UsingADO/image011.jpg" width="455" /&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;strong&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoBodyTextIndent2" style="line-height: normal; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Create the form shown below.  The names of the text boxes in the top frame are shown in the form. Set the Enabled property of the frame to False, which will automatically disable all of the textboxes within it, which is desired because this application does not allow updating of the data. The settings for the other controls are given below.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"&gt; &lt;span style="font-size: 10pt;"&gt;&lt;img alt="" border="0" height="467" src="http://www.vb6.us/files/VBPrograms/UsingADO/image012.jpg" width="493" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The navigation buttons have the following properties:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Caption&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdMoveFirst&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;&amp;lt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdMovePrevious&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdMoveNext&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;gt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdMoveLast&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;gt;&amp;gt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The text box in the middle of the form has the following properties:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtCurrentQuery&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;MultiLine&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;True&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Locked&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;True&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The command buttons have the following properties:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Caption&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 117pt;" valign="top" width="156"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Enabled&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdAllData&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Reload    All Records&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 117pt;" valign="top" width="156"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;True&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdGetData&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Run Query    Now&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 117pt;" valign="top" width="156"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;False&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            In the "Select Criteria" frame:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoBodyText"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The check boxes are an array:&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Caption&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;chkCriteria(0)     &lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;EmpNo&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;chkCriteria(1)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;City&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;chkCriteria(2)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;State&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The labels are also an array:&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Caption&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Enabled&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;lblCriteria(0)       &lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;=&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;False&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;lblCriteria(1)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Like&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;False&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;lblCriteria(2)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Like&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;False&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The textboxes are also an array:&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Caption&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Enabled&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtCriteria(0)      &lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;EmpNo&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;False&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtCriteria(1)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;City&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;False&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtCriteria(2)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;State&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;False&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            Place the StatusBar on the form and set its Style property to 1 – sbrSimple.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;2.         Code the General Declarations section as shown below. Here, two &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; objects, &lt;strong&gt;ADODB.Connection&lt;/strong&gt; and &lt;strong&gt;ADODB.Recordset&lt;/strong&gt;, are defined at the form level.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;strong&gt;ADODB.Connection&lt;/strong&gt; object represents an open connection to a data source and a specific database on that data source, or an allocated but as yet unconnected object, which can be used to subsequently establish a connection.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;strong&gt;ADODB.Recordset&lt;/strong&gt; object represents the rows that result from running a query,&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Option Explicit&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Dim mobjADOConn As ADODB.Connection&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Dim mobjADORst  As ADODB.Recordset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Dim mstrSQL     As String&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;3.         Code the Form_Load event.  Here, the connection object variable mobjADOConn is made available for use by setting it to a new instance of ADODB.Connection. Then, the &lt;strong&gt;ConnectionString&lt;/strong&gt; property and the &lt;strong&gt;Open &lt;/strong&gt;method of the ADODB.Connection object are used.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The ConnectionString property takes a string with various arguments delimited by semicolons. When using a DSN as we are in this sample application, you typically need just the DSN name, the user id, and the password. The Open method then opens the connection to the database.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub Form_Load()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'set up the form and connect to the data source&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;   &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'center the form:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Me.Top = (Screen.Height - Me.Height) / 2&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Me.Left = (Screen.Width - Me.Width) / 2&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' Connect to the Property database:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Set mobjADOConn = New ADODB.Connection&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADOConn.ConnectionString = "DSN=PropDB;Uid=admin;Pwd=;"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADOConn.Open&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call cmdAllData_Click&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;4.         Code the cmdAllData_Click event, which sets or resets the ADODB.Recordset object with a query to display all the rows in the table. The opening of the recordset takes place in the OpenNewRecordset subprocedure, called from this event procedure.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdAllData_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim lngX  As Long&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'select or reload the data to be displayed:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mstrSQL = "select * from property"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call OpenNewRecordset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'load data into the text boxes&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call DataLoad&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' reset the state of the search criteria controls&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    For lngX = 0 To 2&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        chkCriteria(lngX).Value = vbUnchecked&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Next&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;5.         Create the user-defined subprocedure OpenNewRecordset.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            Here, the recordset object mobjADORst is made available for use by setting (or resetting) it to a new instance of ADODB.Recordset.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;strong&gt;CursorLocation&lt;/strong&gt; property is then set to the built-in constant &lt;strong&gt;adUseClient&lt;/strong&gt;. The term "cursor" refers to the temporary rows of a recordset. The cursor location determines whether the cursor is stored on the client or the server, specified by the values &lt;strong&gt;adUseClient&lt;/strong&gt; and &lt;strong&gt;adUseServer&lt;/strong&gt;, respectively. Server-side cursor (adUseServer)  is the default.  There are tradeoffs using both types of cursors. Client-side cursors can take a long time to build because the data must be pulled over to the client, but once built, traversing the cursor is usually very fast. Client-side cursors often support more features than server-side cursors (the reason this sample application is using a client-side cursor is because we want to use &lt;strong&gt;AbsolutePosition&lt;/strong&gt; property later, which only works with a client-side cursor). On the other hand, server-side cursors usually build faster but often support fewer features that client-side cursors.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;strong&gt;Open&lt;/strong&gt; method of the recordset is then executed. The Open method has the following syntax:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;                        &lt;em&gt;RecordsetObject&lt;/em&gt;.Open &lt;em&gt;Source, ActiveConnection, CursorType, LockType, Options&lt;/em&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;em&gt;Source&lt;/em&gt; argument is an optional variant that evaluates to a valid Command object, SQL statement, table name, stored procedure call, or filename of a persisted recordset.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;em&gt;ActiveConnection&lt;/em&gt; argument is an optional variant that evaluates to a valid Connection object variable name or a string containing connection string parameters.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;em&gt;CursorType&lt;/em&gt; argument is an optional value that determines the type of cursor that the provider should use when opening the recordset. The possible values and their descriptions are given below:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Value&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 430.2pt;" valign="top" width="574"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Description&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adOpenForwardOnly&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 430.2pt;" valign="top" width="574"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;(default)    Used to open a forward-only cursor. Forward-only cursors create static    snapshots of data. A recordset that uses a forward-only cursor is not    directly updateable and can only be scrolled from beginning to end (i.e.,    "MoveNext" is the only "Move" method that can be used    with this type of cursor). Forward-only cursors offer optimal performance in    exchange for feature limitations. Forward-only cursors are sometimes referred    to as &lt;em&gt;firehose&lt;/em&gt; cursors. &lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adOpenStatic&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 430.2pt;" valign="top" width="574"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Used to    open a static cursor. A static cursor is a static copy of the data in the    data source. Once created, no changes made by other users propagate to the    recordset; the recordset never changes. &lt;em&gt;Note: Client side cursors (like    the one used in this sample application) use only adOpenStatic for    CursorTypes regardless of which CursorType you select.&lt;/em&gt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adOpenDynamic&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 430.2pt;" valign="top" width="574"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Used to    open a dynamic cursor. A dynamic cursor is a "live" recordset,    meaning that any and all additions, changes, and deletions by other users    affect the recordset. Dynamic-cursor recordsets support all types of    navigation, including bookmarks (if bookmarks are supported by the provider).    Dynamic cursors offer the most features of any cursor type, but at the    expense of increased overhead.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adOpenKeyset&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 430.2pt;" valign="top" width="574"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Used to    open a keyset cursor. Keyset cursors are like dynamic cursors, except    additions made by other users are not visible in the recordset. The recordset    is affected by changes and deletions, however.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;                        &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;em&gt;LockType&lt;/em&gt; argument is an optional value that determines the type of locking that the provider should use when opening the recordset. The possible values and their descriptions are given below:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Value&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Description&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adLockReadOnly&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;(default)    Specifies read-only locking. Records can be read, but data cannot be added,    changed, or deleted. This is the locking method used with static cursors and    forward-only cursors.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adLockPessimistic&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Specifies    pessimistic locking. The provider does what is necessary to ensure successful    editing of records, usually by locking records at the data source immediately    upon editing.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adLockOptimistic&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Specifies    optimistic locking. The provider locks records only when you call the Update    method, not when you start editing.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adLockBatchOptimistic&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Specifies    optimistic batch locking. Records are locked in batch update mode, as opposed    to immediate update mode. This option is required for client-side cursors.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;                        &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;em&gt;Options &lt;/em&gt; argument is an optional Long value that indicates how the Source should be evaluated. The possible values and their descriptions are given below:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Value&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div align="center" class="MsoNormal" style="text-align: center;"&gt;    &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Description&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adCmdText&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Indicates    that the provider should evaluate CommandText as a textual definition of a    command. This options is used SQL statements.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adCmdTable&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Indicates    that the provider should evaluate CommandText as a table.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adCmdStoredProc&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Indicates    that the provider should evaluate CommandText as a stored procedure.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adCmdUnknown&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Indicates    that the type of command in the CommandText argument is not known and that    the provider should attempt to interpret it. Typically results in poor    performance.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adExecuteAsync&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Indicates    that the command should execute asynchronously.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 112.55pt;" valign="top" width="150"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;adFetchAsync&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 425.65pt;" valign="top" width="568"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Indicates    that the remaining rows after the initial quantity specified in the CacheSize    property should be fetched asynchronously.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;                        &lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub OpenNewRecordset()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Set mobjADORst = New ADODB.Recordset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.CursorLocation = adUseClient&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Open mstrSQL, mobjADOConn, adOpenStatic, , adCmdText&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' display current query&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtCurrentQuery.Text = mstrSQL&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;6.         Create the user-defined subprocedure DataLoad.  This subprocedure gets the data from the recordset and puts each field into a text box. Data from the recordset is accessed via the &lt;strong&gt;Fields&lt;/strong&gt; collection.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;strong&gt;Fields&lt;/strong&gt; collection in &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; works identically  to the &lt;strong&gt;Fields&lt;/strong&gt; collection in DAO. A field can be referenced with or without specifying Fields, either by the field name in quotes or by its ordinal position in the resultset. The field can also be referenced with the bang (!) operator.  All of the following would be valid ways of referencing the field "propno":&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            mobjADORst.Fields("propno")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            mobjADORst ("propno")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            mobjADORst.Fields(0)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            mobjADORst(0)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            mobjADORst!propno&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub DataLoad()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'copy the data from the recordset to the text boxes:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtPropNo.Text = mobjADORst.Fields("propno")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtEmpNo.Text = mobjADORst.Fields("empno")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAddress.Text = mobjADORst.Fields("address")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtCity.Text = mobjADORst.Fields("city")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtState.Text = mobjADORst.Fields("state")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtZip.Text = mobjADORst.Fields("zip")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call SetRecNum&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;7.         Create the user-defined subprocedure SetRecNum.  This sub displays the number of the current record at the bottom of the screen. The &lt;strong&gt;AbsolutePosition&lt;/strong&gt; and &lt;strong&gt;RecordCount&lt;/strong&gt; properties of the Recordset are used here.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;strong&gt;AbsolutePosition&lt;/strong&gt; property specifies the current row in a recordset. Note: For AbsolutePosition to return a valid value with Access (Jet) databases (like the one used in the sample application), the CursorLocation must be set to adUseClient. An invalid value (-1) will be returned if adUseClient is specified.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;strong&gt;RecordCount&lt;/strong&gt; property the total number of rows in the recordset. Note: RecordCount will not return a valid value with all cursor types (for example, RecordCount will return -1 with a forward-only cursor.) To ensure a valid RecordCount value, use either adOpenKeyset or adOpenStatic as the CursorType for server side cursors or use a client side cursor.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub SetRecNum()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    StatusBar1.SimpleText = "row " &amp;amp; mobjADORst.AbsolutePosition _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          &amp;amp; " of " &amp;amp; mobjADORst.RecordCount&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoBodyTextIndent2" style="line-height: normal; margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;8.         Code the events for the navigation buttons as shown below, using the recordset "Move" methods to move to the first, last, next, or previous record, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdMoveFirst_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.MoveFirst&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call DataLoad&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdMoveLast_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.MoveLast&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call DataLoad&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdMoveNext_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.MoveNext&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mobjADORst.EOF Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Beep&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.MoveLast&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call DataLoad&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdMovePrevious_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.MovePrevious&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mobjADORst.BOF Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Beep&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.MoveFirst&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call DataLoad&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;9.         When one of the check boxes is clicked, the label and text box next to it should be enabled (or disabled, if clicking the check box unchecks it). Note also that the cmdGetData button (the one with the "Run Query Now" caption) should only be enabled if one of the checkboxes is checked.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub chkCriteria_Click(Index As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' disable the 'Run Query Now' button&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdGetData.Enabled = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'when the user clicks on a check box, enable the label and text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'box that go with it.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If chkCriteria(Index).Value = vbChecked Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtCriteria(Index).Enabled = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        lblCriteria(Index).Enabled = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtCriteria(Index).SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtCriteria(Index).SelStart = 0&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtCriteria(Index).SelLength = Len(txtCriteria(Index).Text)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        ' enable the 'Run Query Now' button only if a box is checked.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        cmdGetData.Enabled = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtCriteria(Index).Enabled = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        lblCriteria(Index).Enabled = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;10.        After the user has selected which fields to use and entered values in the text boxes, they click the cmdGetData button to create a new recordset with new data. Note that if the user selects (checks) a field, but does not enter search criteria in the corresponding textbox, an error message is generated and the query is not run.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.5in; margin-right: 0in; padding: 1pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdGetData_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'run the query that the user has created&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim blnFirstOne As Boolean&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    blnFirstOne = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mstrSQL = "select * from property where "&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If chkCriteria(0).Value = vbChecked Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If (txtCriteria(0).Text = "") Or (Not IsNumeric(txtCriteria(0).Text)) Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            MsgBox "Employee number is missing or non-numeric. Query not run.", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                   vbExclamation, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                   "&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt; Example"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        blnFirstOne = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mstrSQL = mstrSQL &amp;amp; "empno = " &amp;amp; txtCriteria(0).Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If chkCriteria(1).Value = vbChecked Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If txtCriteria(1).Text = "" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            MsgBox "City criteria is missing. Query not run.", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                   vbExclamation, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                   "&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt; Example"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If blnFirstOne = False Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            mstrSQL = mstrSQL &amp;amp; " and"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        blnFirstOne = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mstrSQL = mstrSQL &amp;amp; " city like '" &amp;amp; txtCriteria(1).Text &amp;amp; "'"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If chkCriteria(2).Value = vbChecked Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If txtCriteria(2).Text = "" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            MsgBox "State criteria is missing. Query not run.", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                   vbExclamation, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                   "&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt; Example"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If blnFirstOne = False Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            mstrSQL = mstrSQL &amp;amp; " and"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        blnFirstOne = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mstrSQL = mstrSQL &amp;amp; " state like '" &amp;amp; txtCriteria(2).Text &amp;amp; "'"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    OpenNewRecordset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'make sure that the query did not return 0 rows:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mobjADORst.EOF Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Your query (" &amp;amp; mstrSQL &amp;amp; ") returned no records! " _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;             &amp;amp; "The default query to return all records will now be rerun.", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;               vbExclamation, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;               "&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt; Example"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        'reload the form with all the records&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        cmdAllData_Click&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Your query returned " &amp;amp; mobjADORst.RecordCount &amp;amp; " records.", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;               vbInformation, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;               "&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt; Example"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        'load data into the text boxes&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Call DataLoad&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt; 11.       Save and run. Note: When entering the "Like" criteria for City and/or State, you can use the wildcard character % to represent any number of characters and the wildcard character _ (underscore) the represent a single character. For example, entering "M%" for the City criteria would return all rows where the city field begins with the letter "M".&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Download the project files for this sample application &lt;a href="http://www.vb6.us/files/VBPrograms/UsingADO/SampleApp2.zip"&gt;here&lt;/a&gt;.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;strong&gt;&lt;em&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sample Application 3&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sample Application 3 demonstrates how to add, update, and delete records with &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;. &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;When the application is first run, the user is prompted to enter a minimum asking price to possibly limit the number of records they want to work with (i.e., "I only want to work with properties that are selling for $200,000 or more). If the user wants to work with all properties, they would simply accept the default of 0 from the prompt. If the user clicks the Cancel button, the application will end.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="148" src="http://www.vb6.us/files/VBPrograms/UsingADO/image013.jpg" width="363" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Once the user has entered the minimum asking price, the main screen of the application is displayed. Initially, the screen is in "browse" mode, where the user can use the navigation buttons to move to the first, previous, next or last record. The data cannot be edited in this mode. If they want to initiate an add or an update, delete a record, or exit the application, they may do so via the appropriate button. Saving or cancelling is not applicable in this mode, so those buttons are disabled.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="341" src="http://www.vb6.us/files/VBPrograms/UsingADO/image014.jpg" width="493" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;If the user clicks the Add button, the fields on the screen are enabled and cleared, and the user can enter the information for the new property. All buttons except Save and Cancel are now disabled. After the user has made entries in the fields, he or she would click Save to add the new record to the database table, or, if they changed their mind, would click Cancel to discard the new record. In either case (clicking Save or Cancel) the user is returned to browse mode. When Save is clicked, the application validates the entries and will only save the record if all fields pass edit (otherwise, a message will appear indicating the problem entry and focus will be set to the problem field).&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="341" src="http://www.vb6.us/files/VBPrograms/UsingADO/image015.jpg" width="493" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;If the user clicks the Update button, the fields on the screen are enabled and the user can modify any or all of the fields (except for the Property Number, which is the primary key of the table). All buttons except Save and Cancel are now disabled. After the user has made modifications in the desired fields, he or she would click Save to update the record to the database table, or, if they changed their mind, would click Cancel to discard the changes. In either case (clicking Save or Cancel) the user is returned to browse mode. When Save is clicked, the application validates the entries and will only save the record if all fields pass edit (otherwise, a message will appear indicating the problem entry and focus will be set to the problem field).&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="341" src="http://www.vb6.us/files/VBPrograms/UsingADO/image016.jpg" width="493" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;If the user clicks the Delete button, the user is asked to confirm that they want to delete the current record. If they respond Yes, the record is deleted from the database table, and the main screen shows the next record in the table.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="122" src="http://www.vb6.us/files/VBPrograms/UsingADO/image017.jpg" width="290" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;To build Sample Application 3,  start a new VB project and perform the following steps.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;From the &lt;strong&gt;Project -&amp;gt; References&lt;/strong&gt; menu, check &lt;strong&gt;Microsoft ActiveX Data Objects 2.&lt;em&gt;x&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;Library&lt;/strong&gt; and click OK.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-size: 10pt;"&gt;&lt;img alt="" border="0" height="360" src="http://www.vb6.us/files/VBPrograms/UsingADO/image018.jpg" width="449" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;strong&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;This project uses the StatusBar control, so include the &lt;strong&gt;Microsoft Windows Common Controls 6.0&lt;/strong&gt; &lt;strong&gt;(SP6)&lt;/strong&gt; from the &lt;strong&gt;Components&lt;/strong&gt; dialog box, accessed from the &lt;strong&gt;Project -&amp;gt; Components&lt;/strong&gt; menu. Check this item and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;strong&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;strong&gt;&lt;span style="font-size: 10pt;"&gt;&lt;img alt="" border="0" height="407" src="http://www.vb6.us/files/VBPrograms/UsingADO/image011.jpg" width="455" /&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Create the form shown below. The settings for the various controls are given below.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img alt="" border="0" height="343" src="http://www.vb6.us/files/VBPrograms/UsingADO/image019.jpg" width="495" /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center" class="MsoNormal" style="text-align: center;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;There are nine textboxes in the main frame of the form. The names and MaxLength settings for these are given below:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 23.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Properties&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtPropNo&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    5&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtEmpNo&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    4&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtAddress&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    20&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtCity&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    15&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtState&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    2&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtZip&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    5&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtBeds&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    1&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtBaths&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    3 (allows fractional amount, like 1.5)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;txtAsking&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 6in;" valign="top" width="576"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaxLength:    0 (not specified)&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Set up the Command Buttons as follows:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 41.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Name&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Caption&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdMoveFirst&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;&amp;lt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdMovePrevious&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdMoveNext&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;gt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdMoveLast&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;gt;&amp;gt;&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdAdd&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Add&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdUpdate&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Update&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdDelete&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Delete&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdSave&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Save&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdCancel&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Cancel&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 2.25in;" valign="top" width="216"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;cmdExit&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 171pt;" valign="top" width="228"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Exit&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoBodyText" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;All controls on your form should have their &lt;strong&gt;TabIndex&lt;/strong&gt; property set such that the tabbing order is correct.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Add a Module to the project, name it &lt;strong&gt;modCommon&lt;/strong&gt;, and enter the code shown below. The code contains procedures described as follows:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; margin-left: 23.4pt;"&gt;&lt;tbody&gt;
&lt;tr&gt;    &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 122.85pt;" valign="top" width="164"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;CenterForm&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 5.45in;" valign="top" width="523"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sub to    center a form on the screen&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.85pt;" valign="top" width="164"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ValidKey&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 5.45in;" valign="top" width="523"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Function    to validate a keystroke for use in the KeyPress event of a textbox&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.85pt;" valign="top" width="164"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ConvertUpper&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 5.45in;" valign="top" width="523"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Function    to convert an alphabetic character entered in a textbox to uppercase, used in    the KeyPress event of a textbox&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.85pt;" valign="top" width="164"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;SelectTextBoxText&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 5.45in;" valign="top" width="523"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sub to    highlight the text of a textbox when it receives focus. Used in the GotFocus    event of a textbox.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.85pt;" valign="top" width="164"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;TabToNextTextBox&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 5.45in;" valign="top" width="523"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Sub to    "autotab" from one textbox to another when maximum number of    characters that can be entered into the first textbox has been reached.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.85pt;" valign="top" width="164"&gt;    &lt;div class="MsoNormal"&gt;    &lt;strong&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;UnFormatNumber&lt;/span&gt;&lt;/strong&gt;    &lt;/div&gt;&lt;/td&gt;    &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 5.45in;" valign="top" width="523"&gt;    &lt;div class="MsoNormal"&gt;    &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Function    to strip out non-numeric characters (dollar signs, commas, etc.) from a    formatted number.&lt;/span&gt;    &lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 27pt; margin-right: 0in; padding: 1pt 1pt 1pt 0in;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Option Explicit&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public Const gstrNUMERIC_DIGITS     As String = "0123456789"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public Const gstrUPPER_ALPHA_PLUS   As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ,'-"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public gblnPopulating               As Boolean&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public Sub CenterForm(pobjForm As Form)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    With pobjForm&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        .Top = (Screen.Height - .Height) / 2&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        .Left = (Screen.Width - .Width) / 2&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End With&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public Function ValidKey(pintKeyValue As Integer, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                         pstrSearchString As String) As Integer&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'  Common function to filter out keyboard characters passed to this&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'  function from KeyPress events.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'  Typical call:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'      KeyAscii = ValidKey(KeyAscii, gstrNUMERIC_DIGITS)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If pintKeyValue &amp;lt; 32 _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Or InStr(pstrSearchString, Chr$(pintKeyValue)) &amp;gt; 0 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        'Do nothing - i.e., accept the control character or any key&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        '             in the search string passed to this function ...&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        'cancel (do not accept) any other key ...&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        pintKeyValue = 0&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ValidKey = pintKeyValue&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public Function ConvertUpper(pintKeyValue As Integer) As Integer&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'  Common function to force alphabetic keyboard characters to uppercase&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 27pt; margin-right: 0in; padding: 1pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'  when called from the KeyPress event.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'  Typical call:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'      KeyAscii = ConvertUpper(KeyAscii)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Chr$(pintKeyValue) &amp;gt;= "a" And Chr$(pintKeyValue) &amp;lt;= "z" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        pintKeyValue = pintKeyValue - 32&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ConvertUpper = pintKeyValue&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public Sub SelectTextBoxText(pobjTextbox As TextBox)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    With pobjTextbox&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        .SelStart = 0&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        .SelLength = Len(.Text)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End With&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public Sub TabToNextTextBox(pobjTextBox1 As TextBox, pobjTextBox2 As TextBox)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If gblnPopulating Then Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If pobjTextBox2.Enabled = False Then Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Len(pobjTextBox1.Text) = pobjTextBox1.MaxLength Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        pobjTextBox2.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Public Function UnFormatNumber(pstrNumberIn As String) As String&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim lngX            As Long&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim strCurrChar     As String&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim strNumberOut    As String&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    strNumberOut = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    For lngX = 1 To Len(pstrNumberIn)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        strCurrChar = Mid$(pstrNumberIn, lngX, 1)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If InStr("0123456789.", strCurrChar) &amp;gt; 0 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            strNumberOut = strNumberOut &amp;amp; strCurrChar&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Next&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    UnFormatNumber = strNumberOut&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Function&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the General Declarations section as shown below. Here, as in the previous sample application, two &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; object variables, &lt;strong&gt;mobjADOConn&lt;/strong&gt; and &lt;strong&gt;mobjADORst&lt;/strong&gt;, are defined at the form level, as are some other form-level variables that will be needed.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Option Explicit&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Dim mobjADOConn             As ADODB.Connection&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Dim mobjADORst              As ADODB.Recordset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private mstrSQL             As String&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private mdblMinAsking       As Double&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private mblnUpdatePending   As Boolean&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private mstrUpdateType      As String&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private mavntUSStates       As Variant&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;Form_Load&lt;/strong&gt; event as shown below. In it, a programmer-defined Sub named &lt;strong&gt;GetMinimumAsking&lt;/strong&gt; is called (that routine is the one that displays the initial prompt to the user to enter the minimum asking price of the properties they want to work with). Then, the variant array &lt;strong&gt;mavntUSStates&lt;/strong&gt; is loaded with the 50 &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;US&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; state abbreviations, needed for validating the state input by the user. This is followed by a call to the CenterForm sub. Then, the &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; connection object (mobjADOConn) is instantiated, its ConnectionString property is set, and the Open method&lt;strong&gt; &lt;/strong&gt;is invoked so that we can use the Property database in the application. This is followed by a call to the programmer-defined Sub &lt;strong&gt;GetPropertyData &lt;/strong&gt;(which runs the query to create the recordset that will be used to browse the Property table records), followed by a call to the programmer-defined Sub &lt;strong&gt;SetFormState &lt;/strong&gt;(which enables and disables controls at the appropriate time).&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub Form_Load()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;   &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;   &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' obtain the minimum asking price for the properties to be worked with&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    GetMinimumAsking&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' load the array of states to be used for validation&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mavntUSStates = Array("AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          "WI", "WV", "WY")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'center the form:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    CenterForm Me&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' Connect to the Property database:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Set mobjADOConn = New ADODB.Connection&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADOConn.ConnectionString = "DSN=PropDB;Uid=admin;Pwd=;"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADOConn.Open&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call GetPropertyData&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SetFormState False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;GetMinimumAsking&lt;/strong&gt; Sub, which uses the InputBox function to prompt to the user to enter the minimum asking price of the properties they want to work with. The resulting value is then stored in the form-level variable &lt;strong&gt;mdblMinAsking&lt;/strong&gt;.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub GetMinimumAsking()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim strInputBoxPrompt   As String&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim strAsking           As String&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    strInputBoxPrompt = "Enter the minimum asking price (for example, 200000) " _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                      &amp;amp; "for the properties that you want to work with this session." _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                      &amp;amp; vbNewLine _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                      &amp;amp; "To work with ALL properties, leave the default of zero."&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    strAsking = InputBox(strInputBoxPrompt, "Minimum Asking Price", "0")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If strAsking = "" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        ' user clicked Cancel button on the input box, so end the app&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mdblMinAsking = Val(strAsking)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;GetPropertyData&lt;/strong&gt; Sub, which builds the SQL to get the property records meeting the minimum asking price condition.  The Recordset object is then instantiated, its CursorLocation property is set, and its Open method is invoked to execute the SQL and return the resultset. This is done in a loop in case the resultset does not return any records due to the fact no records in the table met the asking price condition. In that situation, the user is given the opportunity to specify a different asking price value. Following this, the programmer-defined Sub &lt;strong&gt;PopulateFormFields&lt;/strong&gt; is called (which displays the fields from the current record in their corresponding textboxes on the form).&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub GetPropertyData()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim blnGotData  As Boolean&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    blnGotData = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Do&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        'select or reload the data to be displayed:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mstrSQL = "select propno" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "     , empno" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "     , address" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "     , city" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "     , state" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "     , zip" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "     , beds" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "     , baths" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "     , asking" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; "  from property" _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; " where asking &amp;gt;= " &amp;amp; mdblMinAsking _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &amp;amp; " order by propno"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Set mobjADORst = New ADODB.Recordset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.CursorLocation = adUseClient&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.Open mstrSQL, mobjADOConn, adOpenDynamic, adLockOptimistic, adCmdText&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If mobjADORst.EOF Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            If MsgBox("There are no properties with an asking price &amp;gt;= " _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                    &amp;amp; Format$(mdblMinAsking, "Currency") _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                    &amp;amp; ". Do you want to try again with a different value?", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                      vbYesNo + vbQuestion, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                      "Asking Price") _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            = vbYes Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                GetMinimumAsking&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                End&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            blnGotData = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Loop Until blnGotData&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'load data into the text boxes&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call PopulateFormFields&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;PopulateFormFields&lt;/strong&gt; Sub, which assigns the fields from the current record to their corresponding textboxes on the form. Note that the gblnPopulating Boolean variable is set to True prior to the assignments and set to False after the assignments. This value is used to control whether or not certain code executes in the event procedures for some of these textboxes. The Sub &lt;strong&gt;SetRecNum&lt;/strong&gt; is then called.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub PopulateFormFields()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    gblnPopulating = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'copy the data from the resultset to the text boxes:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtPropNo.Text = mobjADORst.Fields("propno")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtEmpNo.Text = mobjADORst.Fields("empno")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAddress.Text = mobjADORst.Fields("address")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtCity.Text = mobjADORst.Fields("city")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtState.Text = mobjADORst.Fields("state")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtZip.Text = mobjADORst.Fields("zip")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtBeds.Text = mobjADORst.Fields("beds")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtBaths.Text = mobjADORst.Fields("baths")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAsking.Text = Format$(mobjADORst.Fields("asking"), "Currency")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    gblnPopulating = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call SetRecNum&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;SetRecNum &lt;/strong&gt;Sub.  This sub is identical to the one used in Sample Application 2. It displays the number of the current record at the bottom of the screen using the &lt;strong&gt;AbsolutePosition &lt;/strong&gt;and &lt;strong&gt;RowCount&lt;/strong&gt; properties of the Recordset object.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub SetRecNum()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    StatusBar1.SimpleText = "row " &amp;amp; mobjADORst.AbsolutePosition _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                          &amp;amp; " of " &amp;amp; mobjADORst.RecordCount&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;SetFormState &lt;/strong&gt;Sub, which takes in a Boolean argument used to set the Enabled property of the controls on the form. Based on whether the value True or False is passed to this sub, this sub ensures that the textboxes are enabled for adds and updates and disabled for browsing; it also ensures that the various command buttons are enabled or disabled at the appropriate time. This Sub also sets the form-level Boolean variable &lt;strong&gt;mblnUpdatePending&lt;/strong&gt;.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub SetFormState(pblnEnabled As Boolean)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtPropNo.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtEmpNo.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAddress.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtCity.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtState.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtZip.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtBeds.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtBaths.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAsking.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdSave.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdCancel.Enabled = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdAdd.Enabled = Not pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdUpdate.Enabled = Not pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdDelete.Enabled = Not pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdExit.Enabled = Not pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdMoveFirst.Enabled = Not pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdMoveNext.Enabled = Not pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdMovePrevious.Enabled = Not pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    cmdMoveLast.Enabled = Not pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mblnUpdatePending = pblnEnabled&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;Form_Unload &lt;/strong&gt;event. In it, the form-level Boolean variable &lt;strong&gt;mblnUpdatePending&lt;/strong&gt; is tested to see if (well, an update is pending – i.e., whether an add or update is in progress). If the user is in the middle of an add or update and then clicks the "X" button on the upper-right corner of the form, they will receive the message that they must save or cancel prior to exiting the application, and the form will NOT be unloaded (because we are assigning a non-zero value to the Cancel argument in that situation). Provided that an add or update is not in progress, we set the database objects to Nothing and the Unload will complete.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub Form_Unload(Cancel As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mblnUpdatePending Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "You must save or cancel the current operation prior to exiting.", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;               vbExclamation, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;               "Exit"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Cancel = 1&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Set mobjADORst = Nothing&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Set mobjADOConn = Nothing&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the events for the various Textboxes as shown below. The code in these events ensure the following:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;For all, highlight the text in the textbox when it receives focus.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;For all but the last textbox, if the maximum number of characters typed into the textbox is reached, auto-tab to the next textbox.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Only numeric digits should be entered into the property number, employee number, zip codes, and beds textboxes.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Only numeric digits and optionally one decimal point should be entered into the baths and asking textboxes.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Force uppercase on the state textbox.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"&gt; &lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;When the asking textbox receives focus, the value in there should be unformatted. When the asking textbox loses focus, its value should be formatted as currency.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'    Textbox events&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' property #&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtPropNo_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtPropNo&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtPropNo_KeyPress(KeyAscii As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    KeyAscii = ValidKey(KeyAscii, gstrNUMERIC_DIGITS)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtPropNo_Change()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    TabToNextTextBox txtPropNo, txtEmpNo&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' emp #&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtEmpNo_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtEmpNo&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtEmpNo_KeyPress(KeyAscii As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    KeyAscii = ValidKey(KeyAscii, gstrNUMERIC_DIGITS)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtEmpNo_Change()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    TabToNextTextBox txtEmpNo, txtAddress&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' address&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtAddress_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtAddress&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtAddress_Change()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    TabToNextTextBox txtAddress, txtCity&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' city&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtCity_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtCity&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtCity_Change()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    TabToNextTextBox txtCity, txtState&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' state&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtState_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtState&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtState_KeyPress(KeyAscii As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    KeyAscii = ConvertUpper(KeyAscii)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtState_Change()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    TabToNextTextBox txtState, txtZip&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' zip&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtZip_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtZip&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtZip_KeyPress(KeyAscii As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    KeyAscii = ValidKey(KeyAscii, gstrNUMERIC_DIGITS)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtZip_Change()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    TabToNextTextBox txtZip, txtBeds&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' beds&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtBeds_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtBeds&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtBeds_KeyPress(KeyAscii As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    KeyAscii = ValidKey(KeyAscii, gstrNUMERIC_DIGITS)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtBeds_Change()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    TabToNextTextBox txtBeds, txtBaths&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' baths&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtBaths_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtBaths&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtBaths_KeyPress(KeyAscii As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    KeyAscii = ValidKey(KeyAscii, gstrNUMERIC_DIGITS &amp;amp; ".")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' if text already has a decimal point, do not allow another ...&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Chr$(KeyAscii) = "." And InStr(txtBaths.Text, ".") &amp;gt; 0 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        KeyAscii = 0&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtBaths_Change()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    TabToNextTextBox txtBaths, txtAsking&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;' asking price&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtAsking_GotFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAsking.Text = UnFormatNumber(txtAsking.Text)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SelectTextBoxText txtAsking&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtAsking_KeyPress(KeyAscii As Integer)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    KeyAscii = ValidKey(KeyAscii, gstrNUMERIC_DIGITS &amp;amp; ".")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' if text already has a decimal point, do not allow another ...&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Chr$(KeyAscii) = "." And InStr(txtAsking.Text, ".") &amp;gt; 0 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        KeyAscii = 0&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub txtAsking_LostFocus()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAsking.Text = Format$(txtAsking.Text, "Currency")&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the events for the navigation buttons as shown below, using the resultset "Move" methods to move to the first, last, next, or previous record, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdMoveFirst_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.MoveFirst&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call PopulateFormFields&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdMoveLast_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.MoveLast&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call PopulateFormFields&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdMoveNext_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.MoveNext&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mobjADORst.EOF Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Beep&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.MoveLast&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call PopulateFormFields&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdMovePrevious_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.MovePrevious&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mobjADORst.BOF Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Beep&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.MoveFirst&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call PopulateFormFields&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;Click&lt;/strong&gt; event for the &lt;strong&gt;cmdAdd &lt;/strong&gt;button. In it, the textboxes are cleared, the &lt;strong&gt;SetFormState&lt;/strong&gt; sub is called (passing it a parameter of True, which will enable the textboxes and the Save and Cancel buttons and disable all the other buttons), set the form-level variable &lt;strong&gt;mstrUpdateType&lt;/strong&gt; to "A" (indicating that an add is pending) and sets focus to the Property Number field.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdAdd_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'clear all the text boxes:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtPropNo.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtEmpNo.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAddress.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtCity.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtState.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtZip.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtBeds.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtBaths.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtAsking.Text = ""&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SetFormState True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mstrUpdateType = "A"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtPropNo.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;Click&lt;/strong&gt; event for the &lt;strong&gt;cmdUpdate &lt;/strong&gt;button. In it, the &lt;strong&gt;SetFormState&lt;/strong&gt; sub is called (passing it a parameter of True, which will enable the textboxes and the Save and Cancel buttons and disable all the other buttons), set the form-level variable &lt;strong&gt;mstrUpdateType&lt;/strong&gt; to "U" (indicating that an update is pending), disables the Property Number field (because it is the primary key and should not be changed) and sets focus to the Employee Number field.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdUpdate_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SetFormState True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mstrUpdateType = "U"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' being that propno is the primary key, it should not be updatable&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtPropNo.Enabled = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    txtEmpNo.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;Click&lt;/strong&gt; event for the &lt;strong&gt;cmdSave &lt;/strong&gt;button. The user would click this button after they have completed entries for an add or update. This sub first invokes the &lt;strong&gt;ValidateAllFields&lt;/strong&gt; function, which returns a Boolean indicating whether or not all entries passed their edit checks. If not, we exit the sub and the record is not saved; the user remains in "update pending" mode and has the opportunity to correct the entries. Provided that validation is successful, the sub proceeds. The &lt;strong&gt;mstrUpdateType&lt;/strong&gt; variable is checked to see whether we are dealing with an add or an update.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;If we are dealing with an add, we invoke the &lt;strong&gt;AddNew&lt;/strong&gt; method of the Recordset object. The &lt;strong&gt;AddNew&lt;/strong&gt; method prepares a new row you can edit and subsequently add to the Recordset object using the &lt;strong&gt;Update&lt;/strong&gt; method. After you modify the new row, you must use the &lt;strong&gt;Update&lt;/strong&gt; method to save the changes and add the row to the result set. No changes are made to the database until you use the &lt;strong&gt;Update&lt;/strong&gt; method. (The Update method is invoked after the content of the textboxes has been assigned to the database fields.)&lt;/span&gt; &lt;/div&gt;&lt;div class="label"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;If we are dealing with an update, we can just start modifying the fields (provided an appropriate cursor type has been selected)  – unlike DAO and RDO, &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; does not use an &lt;strong&gt;Edit &lt;/strong&gt;method. Changes made to the current row’s columns are copied to the copy buffer. After you make the desired changes to the row, use the &lt;strong&gt;Update&lt;/strong&gt; method to save your changes or the &lt;strong&gt;CancelUpdate&lt;/strong&gt; method to discard them. (If you move on to another record without invoking Update, your changes will be lost.) &lt;/span&gt; &lt;/div&gt;&lt;div class="label"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The content of the textboxes is assigned to the database fields, then the &lt;strong&gt;Update&lt;/strong&gt; method is invoked. The &lt;strong&gt;Update &lt;/strong&gt;method saves the contents of the copy buffer row to a specified updatable Recordset object and discards the copy buffer.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The &lt;strong&gt;mstrUpdateType&lt;/strong&gt; variable is checked once again, and if we are dealing with an add, there is some extra work to do. Although the new record has been added, the original resultset still does not contain the new record. The &lt;strong&gt;Requery&lt;/strong&gt; method must be invoked, which updates the data in a Recordset object by re-executing the query on which the object is based. The &lt;strong&gt;Find&lt;/strong&gt; method is then used to position to the new record. The &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; &lt;strong&gt;Find &lt;/strong&gt;method has the following syntax:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;                        &lt;em&gt;RecordsetObject&lt;/em&gt;.Find &lt;em&gt;Criteria, SkipRows, SearchDirection, Start&lt;/em&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            The &lt;em&gt;Criteria&lt;/em&gt; argument is a String value that specifies the column name, comparison operator, and value to use in the search. Only a single-column name may be specified in &lt;em&gt;criteria&lt;/em&gt;; multi-column searches are not supported. The comparison operator may be "&lt;strong&gt;&amp;gt;&lt;/strong&gt;" (greater than), "&lt;strong&gt;&amp;lt;&lt;/strong&gt;" (less than), "=" (equal), "&amp;gt;=" (greater than or equal), "&amp;lt;=" (less than or equal), "&amp;lt;&amp;gt;" (not equal), or "like" (pattern matching). The value may be a string, floating-point number, or date. String values are delimited with single quotes or "#" (number sign) marks (for example, "state = 'WA'" or "state = #WA#"). Date values are delimited with "#" (number sign) marks (for example, "start_date &amp;gt; #7/22/97#"). These values can contain hours, minutes, and seconds to indicate time stamps, but should not contain milliseconds or errors will occur. If the comparison operator is "like", the string value may contain an asterisk (*) to find one or more occurrences of any character or substring. For example, "state like 'M*'" matches &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Maine&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; and &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Massachusetts&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;. You can also use leading and trailing asterisks to find a substring contained within the values. For example, "state like '*as*'" matches &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Alaska&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;, &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Arkansas&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;, and &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Massachusetts&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;. Asterisks can be used only at the end of a criteria string, or together at both the beginning and end of a criteria string, as shown above. You cannot use the asterisk as a leading wildcard ('*str'), or embedded wildcard ('s*r'). This will cause an error.&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            &lt;em&gt;SkipRows&lt;/em&gt; is an optional Long value, whose default is zero, that specifies the row offset from the current row (or bookmark row specified by the &lt;em&gt;Start &lt;/em&gt;argument, if present) to begin the search. By default, the search will start on the current row.&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            &lt;em&gt;SearchDirection&lt;/em&gt; is an optional value that determines in which direction the search is performed.  The value is specified by the constants &lt;strong&gt;adSearchForward&lt;/strong&gt; (the default) or &lt;strong&gt;adSearchBackward&lt;/strong&gt;, which equate to values of 1 or -1, respectively.&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            &lt;em&gt;Start&lt;/em&gt; is an optional Variant bookmark that functions as the starting position for the search.&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-left: 0.5in; text-indent: -0.5in;"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;            Note: Unlike DAO, &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ADO&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; does not have a "NoMatch" property. If the ADO Find method is unsuccessful, the record pointer is positioned at the end of the Recordset.&lt;/span&gt; &lt;/div&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The &lt;strong&gt;SetRecNum&lt;/strong&gt; sub is then be called to display the status bar information about the new record. The &lt;strong&gt;SetFormState&lt;/strong&gt; sub is then called with a parameter of False, which causes the textboxes and the Save and Cancel buttons to be disabled and all other buttons to be enabled.&lt;/span&gt; &lt;br /&gt;
&lt;div class="label"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Note that in the statement that assigns the contents of the &lt;strong&gt;txtAsking&lt;/strong&gt; textbox to the &lt;strong&gt;asking&lt;/strong&gt; field of the table, our &lt;strong&gt;UnFormatNumber&lt;/strong&gt; function is used to strip off the non-numeric characters. This is because we are using a display format that includes a dollar sign and commas on the txtAsking control, and an error would occur if we attempted to assign this directly to the asking field, which is defined as numeric.&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdSave_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Not ValidateAllFields Then Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mstrUpdateType = "A" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.AddNew&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        ' We can just update the fields. No explicit Edit method&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        ' is available or needed.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'save the data to the database:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("propno") = txtPropNo.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("empno") = txtEmpNo.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("address") = txtAddress.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("city") = txtCity.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("state") = txtState.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("zip") = txtZip.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("beds") = txtBeds.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("baths") = txtBaths.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Fields("asking") = UnFormatNumber(txtAsking.Text)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Update&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mstrUpdateType = "A" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        'after the new record is added, the db must be re-queried&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        'so that the resultset contains the new record:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.Requery&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        ' reposition to the record just added&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        mobjADORst.Find "propno = " &amp;amp; txtPropNo.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        'display status info about the new record&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        SetRecNum&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Reset:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    SetFormState False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Resume Reset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;Code the &lt;strong&gt;Click&lt;/strong&gt; event for the &lt;strong&gt;cmdDelete &lt;/strong&gt;button. The user is first asked to confirm that they want to delete the record, and if so, the &lt;strong&gt;Delete&lt;/strong&gt; method of the resultset object is invoked, which deletes the current row in an updatable resultset object. The &lt;strong&gt;Requery&lt;/strong&gt; method is then invoked so that the record is removed from the resultset that the user is working with. The Find method is then invoked to position the next record after the deleted one. If it was the last record that was deleted, then we position to the "new" last record using the MoveLast property. &lt;strong&gt;PopulateFormFields&lt;/strong&gt; must then be called to display the contents of the new current record.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt 4pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Sub cmdDelete_Click()&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    On Error GoTo LocalError&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'when the current record is deleted, the current location in the recordset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'is invalid.  use the Requery method to re-execute the query and update&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'the data.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If MsgBox("Are you sure you want to delete this record?", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;              vbYesNo + vbQuestion, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;              "Delete") = vbNo Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Delete&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Requery&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' reposition to one past the record just deleted&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    mobjADORst.Find "propno &amp;gt; " &amp;amp; txtPropNo.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' If it was the last record that was deleted, the Find method will&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' come back with EOF, in which case we should MoveLast to position&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' us to the "new" last record ...&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mobjADORst.EOF Then mobjADORst.MoveLast&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    'load data into the text boxes:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Call PopulateFormFields&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Exit Sub&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;LocalError:&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    MsgBox Err.Number &amp;amp; " - " &amp;amp; Err.Description&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: Arial; font-size: 10pt;"&gt;The &lt;strong&gt;ValidateAllFields &lt;/strong&gt;function, which returns a Boolean value indicating whether or not all fields have passed validation checks. This function calls upon two "helper" functions: &lt;strong&gt;PropertyExists&lt;/strong&gt; and &lt;strong&gt;ValidState&lt;/strong&gt;.  When the user is doing an add, the PropertyExist function is called to see whether or not the proposed Property Number is already being used in the Property table. If so, the user is informed that they can't use that number (because it is the primary key and must be unique) and so they must use a different number. The ValidState routine is called to ensure that the user has entered a valid &lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;US&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; state. The code for all three functions is shown below.&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="border: 1pt solid windowtext; margin-left: 0.25in; margin-right: 0in; padding: 1pt;"&gt; &lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Function ValidateAllFields() As Boolean&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ValidateAllFields = False       'guilty until proven innocent&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If mstrUpdateType = "A" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If txtPropNo.Text = "" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            MsgBox "Property # must not be blank.", vbExclamation, "Property #"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            txtPropNo.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        ElseIf PropertyExists Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            MsgBox "Property # already exists. Please use a different #.", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                   vbExclamation, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;                   "Property #"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            txtPropNo.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If txtEmpNo.Text = "" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Emp # must not be blank.", vbExclamation, "Emp #"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtEmpNo.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If txtAddress.Text = "" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Address must not be blank.", vbExclamation, "Address"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtAddress.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If txtCity.Text = "" Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "City must not be blank.", vbExclamation, "City"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtCity.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Not ValidState Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Missing or invalid state.", vbExclamation, "State"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtState.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If txtZip.Text = "" Or Len(txtZip.Text) = 5 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        ' it's OK&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Zip code must either be blank or exactly 5 digits.", _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;               vbExclamation, _&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;               "Zip Code"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtZip.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Val(txtBeds.Text) = 0 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Beds must not be zero.", vbExclamation, "Beds"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtBeds.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Val(txtBaths.Text) = 0 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Baths must not be zero.", vbExclamation, "Baths"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtBaths.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If Val(UnFormatNumber(txtAsking.Text)) = 0 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        MsgBox "Asking must not be zero.", vbExclamation, "Asking"&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        txtAsking.SetFocus&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        Exit Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ' if we make it here, all fields have passed edit&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ValidateAllFields = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'--------------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Function ValidState() As Boolean&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'--------------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim lngX            As Long&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim blnStateFound   As Boolean&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    blnStateFound = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    For lngX = 0 To UBound(mavntUSStates)&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        If txtState.Text = mavntUSStates(lngX) Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            blnStateFound = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;            Exit For&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Next&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    ValidState = blnStateFound&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Function&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Private Function PropertyExists() As Boolean&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;'-----------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim objTempRst  As New ADODB.Recordset&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Dim strSQL      As String&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    strSQL = "select count(*) as the_count from property where propno = " &amp;amp; txtPropNo.Text&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    objTempRst.Open strSQL, mobjADOConn, adOpenForwardOnly, , adCmdText&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    If objTempRst("the_count") &amp;gt; 0 Then&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        PropertyExists = True&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    Else&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;        PropertyExists = False&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;    End If&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class="MsoNormal" style="border: medium none; padding: 0in;"&gt; &lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;End Function&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-5166285834904853214?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/5166285834904853214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/visual-basic-ado-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/5166285834904853214?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/5166285834904853214?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/visual-basic-ado-tutorial.html' title='Visual Basic &amp; ADO Tutorial'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkAARXs4eSp7ImA9WhRXF00.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-7361157366157316288</id><published>2011-12-23T20:25:00.000-08:00</published><updated>2011-12-23T20:25:44.531-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:25:44.531-08:00</app:edited><title>Creating PDF files in Visual Basic</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In the previous tutorial we looked out how to create a simple PDF  document that was one page and was only text. If you've seen many PDF  documents on the web or elsewhere you know that they usually include  more than just text. Fortunately we are able to do these things as well.  In this VB PDF tutorial we're going to look at how to further use the  mjwPDF class accomplish what we need. By the end of the tutorial you  should be able to create a multi-page document that has headers, footers  with page numbers, shapes, graphics, and web links.If you want, you can  &lt;a href="http://www.vb6.us/files/tutorials/advanced-PDF-creation/Advanced-PDF-Tutorial.zip"&gt;download the source code for this VB PDF tutorial&lt;/a&gt; and follow along with it.&lt;br /&gt;
If you haven't read the introductory tutorial about &lt;a href="http://www.vb6.us/tutorials/visual-basic-tutorial-pdf" title="Intro VB PDF Tutorial"&gt;Creating a PDF document using Visual Basic&lt;/a&gt;.  Please do so first. This VB tutorial builds off the previous one. In  fact to start with lets look at the code we created before:&lt;br /&gt;
&lt;pre&gt;Dim objPDF As New mjwPDF
    
    ' Set the PDF title and filename
    objPDF.PDFTitle = "Test PDF Document"
    objPDF.PDFFileName = App.Path &amp;amp; "\test.pdf"
    
    ' We must tell the class where the PDF fonts are located
    objPDF.PDFLoadAfm = App.Path &amp;amp; "\Fonts"
    
    ' View the PDF file after we create it
    objPDF.PDFView = True
    
    ' Begin our PDF document
    objPDF.PDFBeginDoc
        ' Set the font name, size, and style
        objPDF.PDFSetFont FONT_ARIAL, 15, FONT_BOLD
        
        ' Set the text color
        objPDF.PDFSetTextColor = vbBlue
        
        ' Set the text we want to print
        objPDF.PDFTextOut "Hello, World! From mjwPDF (www.vb6.us)"
    
    ' End our PDF document (this will save it to the filename)
    objPDF.PDFEndDoc
End Sub
&lt;/pre&gt;Great. With this code we've done all the initializing and created a  basic file. Now lets add some formatting options. Right after we set the  fonts folder lets add a few lines of code that tell mjwPDF what the  document layout should be like.&lt;br /&gt;
&lt;pre&gt;' We must tell the class where the PDF fonts are located
    objPDF.PDFLoadAfm = App.Path &amp;amp; "\Fonts"
    
    ' Set the file properties
    objPDF.PDFSetLayoutMode = LAYOUT_DEFAULT
    objPDF.PDFFormatPage = FORMAT_A4
    objPDF.PDFOrientation = ORIENT_PORTRAIT
    objPDF.PDFSetUnit = UNIT_PT
    
    ' View the PDF file after we create it
    objPDF.PDFView = True
&lt;/pre&gt;This code sets up a standard page (letter size) in portrait orientation and our units of measure as points.&lt;br /&gt;
Next lets do something fun. Often times you want to add a heading to a  PDF document such as "Very Important Report Blah Blah" Lets figure out  how to add a heading such as this to our document. Delete the bold lines  of code below: &lt;br /&gt;
&lt;pre&gt;' Begin our PDF document
    objPDF.PDFBeginDoc
        ' Set the font name, size, and style
        objPDF.PDFSetFont FONT_ARIAL, 15, FONT_BOLD
        
        ' Set the text color
        objPDF.PDFSetTextColor = vbBlue
        
        ' Set the text we want to print
        objPDF.PDFTextOut "Hello, World! From mjwPDF (www.vb6.us)"
    
    ' End our PDF document (this will save it to the filename)
    objPDF.PDFEndDoc
&lt;/pre&gt;And add these lines of code in their place:&lt;br /&gt;
&lt;pre&gt;' Lets add a heading
objPDF.PDFSetFont FONT_ARIAL, 15, FONT_BOLD
objPDF.PDFSetDrawColor = vbRed
objPDF.PDFSetTextColor = vbWhite
objPDF.PDFSetAlignement = ALIGN_CENTER
objPDF.PDFSetBorder = BORDER_ALL
objPDF.PDFSetFill = True
objPDF.PDFCell "A centered heading", 15, 15, _
    objPDF.PDFGetPageWidth - 30, 40
&lt;/pre&gt;Let me explain what these mean. You should recognize the first line  of code. It just sets the font info. Next we set the DrawColor (which in  this case will be the highlight or inside color of our box). Next the  text color is set and our alignment and border. The PDFSetFill=true  tells mjwPDF to fill this box in when it prints out our text. The next  line is what displays it all.&lt;br /&gt;
Let me break it down. The first parameter is simply the text we want  displayed. Next we tell it how far over from the left we want the box  (or cell) in our case we said 15 points over from the left. The next  parameter is 15 points down from the top. Next we have to specify how  wide the box is going to be. We want it to stretch all the way over to  the right side of the page (minus the 15 point right border). To  accomplish this we can use the mjwPDF classes PDFGetPageWidth function.  This will give us the full width of the page we then subtract 30 off of  it (15 for the left border and 15 for the right border), the last  parameter is the height of the cell, 40 will be plenty high to  accommodate our text.&lt;br /&gt;
If you run the code you should see your PDF pop up with a beautiful header at the top of the page.&lt;br /&gt;
&lt;img height="359" src="http://www.vb6.us/files/tutorials/advanced-PDF-creation/PDF-screen1.jpg" width="495" /&gt; &lt;br /&gt;
Another fun thing is to create shapes in your PDF files. This can be  used to create bar graphs or to highlight certain areas. Here is some  sample code that creates a square.&lt;br /&gt;
&lt;pre&gt;' Lets draw a dashed red square
        objPDF.PDFSetLineColor = vbRed
        objPDF.PDFSetFill = True
        objPDF.PDFSetLineStyle = pPDF_DASHDOT
        objPDF.PDFSetLineWidth = 1
        objPDF.PDFSetDrawMode = DRAW_NORMAL
        objPDF.PDFDrawPolygon Array(300, 150, 400, 150, 400, 250, 300, 250)
&lt;/pre&gt;Most the settings are self explanatory. Notice that you can specify  the line style and the line width. Also notice that there is no draw  square function. Instead there is a draw polygon function. It takes one  parameter, but that parameter is an array of points specified in x y  coordinates. X being how far from left to right to draw the point and Y  being how far from top to bottom. So in our example we are specifying 4  points (the four corners of the square).&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Point 1 is 300 pixels to the right, 150 pixels from the top&lt;/li&gt;
&lt;li&gt;Point 2 is 400 pixels to the right, 150 pixels from the top&lt;/li&gt;
&lt;li&gt;Point 3 is 400 pixels to the right, 250 pixels form the top&lt;/li&gt;
&lt;li&gt;Point 4 is 300 pixels to the right, 250 pixels from the top.&lt;/li&gt;
&lt;/ul&gt;Next lets draw an ellipse. An ellipse is simply a circle that can be  squeezed either vertically or horizontally. To define it correctly we  have to use some mathematical terms. If you remember from geometry class  a circle has a radius. The radius is the distance from the center of  the circle to the edge of the circle. An ellipse has two radiuses. One  is horizontal the other is vertical. So the code for our ellipse is  this: &lt;br /&gt;
&lt;pre&gt;' Lets draw an ellipse
        objPDF.PDFSetDrawColor = vbYellow
        objPDF.PDFSetLineColor = vbBlack
        objPDF.PDFSetLineStyle = pPDF_DASHDOT
        objPDF.PDFSetLineWidth = 1.25
        objPDF.PDFSetDrawMode = DRAW_DRAWBORDER
        objPDF.PDFDrawEllipse 300, 150, 75, 25
&lt;/pre&gt;All the parameters should make sense by now. The new line is the  PDFDrawEllipse call. Its a very simple  call except that many times you think the x and y coordinates would  correspond to the center of the circle. However, you would be wrong.  Instead the first to parameters correspond to the upper left corner of  the square that bounds the ellipse. The next two parameters specify the  horizontal radius and the vertical radius respectively. If this seems  confusing just run the program and you will see what I mean. The x &amp;amp;  y parameters for our ellipse are the same as the x &amp;amp; y parameters  for our first point in the square so you will see how it works. If you  run the program you should see this:&lt;br /&gt;
&lt;img height="375" src="http://www.vb6.us/files/tutorials/advanced-PDF-creation/PDF-screen2.jpg" width="471" /&gt; &lt;br /&gt;
Lets step back to text manipulation in PDF documents again. One thing  you usually see in a professional document is the header like we did  above. Another thing is usually page numbers in the footer. We can use  the same logic we used for our header to add page numbers. I would like  to add the numbers in the footer of the page on the right side, like  most documents have. I'm not going to walk through how you can do this  step by step, but here is the code for a visual basic subroutine that  adds the page number to the bottom right corner of your PDF document.&lt;br /&gt;
&lt;pre&gt;' Adds the page number to the current page
Private Sub AddPageNumber(objPDF As mjwPDF, pageNumber As Integer)
    Dim sPageInfo As String
    Dim fontSize As Double
    Dim margin As Double

    fontSize = 10       'Size of font to use
    margin = 40         'Size of margin (left, right, bottom)
    
    ' Set what we want to print for page info
    sPageInfo = "Page " &amp;amp; pageNumber
    
    ' Should save these settings and change them back for more robust code
    objPDF.PDFSetTextColor = vbBlack
    objPDF.PDFSetAlignement = ALIGN_RIGHT
    objPDF.PDFSetFont FONT_ARIAL, Conversion.CInt(fontSize), FONT_NORMAL
    objPDF.PDFSetFill = False

    ' Uncomment the below line if you want to see how our formatting works
    'objPDF.PDFSetBorder = BORDER_ALL
    
    ' Draw the page number at the bottom of the page to the right
    objPDF.PDFCell sPageInfo, margin,  _
        objPDF.PDFGetPageHeight - margin - fontSize, _
        objPDF.PDFGetPageWidth - (margin * 2), fontSize

End Sub
&lt;/pre&gt;Now that we know how to add page numbers how do we actually create  multiple pages? Its very simple. When you are done with the first page,  simply call the &lt;strong&gt;PDFEndPage&lt;/strong&gt; method. Next call the &lt;strong&gt;PDFNewPage&lt;/strong&gt;  method to start the next page. Than just call the commands to add your  text or shapes to the next page. You can do this as many times as you  want. Don't forget to call the AddPageNumber method on each page though.&lt;br /&gt;
Another useful feature of PDF documents is adding bookmarks.  Bookmarks allow you to jump from section to section in a PDF document  easily. When the user views a PDF document with bookmarks, they are able  to see a table of contents type tab on the left side of the screen.  Note: if you want that pane to be visible by default you should add this  line of code to the initializing section of your program.&lt;br /&gt;
&lt;pre&gt;' Lets us set see the bookmark pane when we view the PDF
    objPDF.PDFUseOutlines = True
&lt;/pre&gt;Adding a bookmark is very easy in Visual Basic using mjwPDF. For  instance lets add four bookmarks to our first page of our document. Call  these anywhere in your code before you call the PDFEndPage method.&lt;br /&gt;
&lt;pre&gt;'Lets add a bookmark to the start of page 1
        objPDF.PDFSetBookmark "A. Page 1", 0, 0
        
        'Now a bookmark half way down page 1
        objPDF.PDFSetBookmark "A1. Page 1 Halfway down", 1, 300
        
        'Now one at the end page 1
        objPDF.PDFSetBookmark "A2. End of Page 1", 1, 500
        
        'Another one a little further down and shows nesting
        objPDF.PDFSetBookmark "A2-Sub1.", 2, 800
&lt;/pre&gt;The first call to PDFSetBookmark creates a bookmark labeled "A. Page  1". The next parameter is the depth of this bookmark. Note: Start your  depth at 0. The last parameter is the y position to where the bookmark  will move the page. So the first call created a bookmark titled "A. Page  1" that points to the top of page 1. The next call creates a bookmark  titled "A1. Page 1 halfway down". It has a depth of 1 (so it will be a  child under our first bookmark) and it will scroll the page 300 points  down. If you run the program you will see all the bookmarks created like  this screen shows.&lt;br /&gt;
&lt;img height="294" src="http://www.vb6.us/files/tutorials/advanced-PDF-creation/PDF-screen3.jpg" width="613" /&gt; &lt;br /&gt;
Another necessity to learn when creating PDF documents is how to add  images to them. The mjwPDF class allows you to add any .jpg images to  your PDF document. If the image is in a different format you will need  to convert it to .jpg before you will be able to add it to your PDF  file. However, if the image is a jpeg it is very easy to add it to the  PDF doc. In the sample source code included with this tutorial you will  see a logo.jpg file. Below is the code to end our first page and to  start our second page. On the second page we add our logo to the upper  left corner of the page. &lt;br /&gt;
&lt;pre&gt;objPDF.PDFEndPage
        
        'Start page 2
        objPDF.PDFNewPage
        
        'Lets add an image to page 2
        objPDF.PDFImage App.Path &amp;amp; "\logo.jpg", _
            15, 15, 50, 50, "http://www.vb6.us"
&lt;/pre&gt;The highlighted code is what adds the logo. We call the PDFImage  function. The first parameter is the path to the jpeg file. The next two  parameters are the x and y coordinates for the logo. The next two  parameters specify the width and height of the image. These parameters  can be left off and then it will just display the picture in its  original size. You can also specify just the height or width and it will  scale the other side of the picture to keep it in proportion. The last  parameter is also optional, but it allows you to specify a web site to  go to if someone clicks on the image.&lt;br /&gt;
If you run your program now you will see a PDF file that has all the  properties of a complete PDF document. Headers, shapes, images, and page  numbers. Combining all these techniques you should be able to do just  about anything you would want to. &lt;a href="http://www.vb6.us/files/tutorials/advanced-PDF-creation/Advanced-PDF-Tutorial.zip"&gt;Download the Advanced PDF VB Tutorial source code&lt;/a&gt; to see the full sample.&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-7361157366157316288?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/7361157366157316288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/creating-pdf-files-in-visual-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/7361157366157316288?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/7361157366157316288?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/creating-pdf-files-in-visual-basic.html' title='Creating PDF files in Visual Basic'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkICQXw8fip7ImA9WhRXF00.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-4608570928862920108</id><published>2011-12-23T20:22:00.001-08:00</published><updated>2011-12-23T20:22:40.276-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:22:40.276-08:00</app:edited><title>The Java SE Development Kit 6 (JDK 6)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;ol&gt;&lt;li&gt;You can  &lt;a class="OutsideLink" href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" target="_blank"&gt;download the Solaris OS or Linux version now&lt;/a&gt;. (Make sure you download the &lt;b&gt;JDK&lt;/b&gt;, &lt;i&gt;not&lt;/i&gt; the JRE.) Consult the  &lt;a class="OutsideLink" href="http://docs.oracle.com/javase/7/docs/webnotes/install/" target="_blank"&gt;installation instructions&lt;/a&gt;.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt; &lt;div style="font-weight: bold;"&gt;A text editor&lt;/div&gt;In this example, we'll use Pico, an editor available for many  UNIX-based platforms. You can easily adapt these instructions if you use  a different text editor, such as &lt;code&gt;vi&lt;/code&gt; or &lt;code&gt;emacs&lt;/code&gt;.&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;These two items are all you'll need to write your first application.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;  &lt;h2&gt;&lt;a href="" id="unix-2" name="unix-2"&gt;&lt;/a&gt; Creating Your First Application&lt;/h2&gt;Your first application, &lt;code&gt;HelloWorldApp&lt;/code&gt;, will simply display the greeting "Hello world!". To create this program, you will:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt; &lt;div style="font-weight: bold;"&gt;Create a source file&lt;/div&gt;A source file contains code, written in the Java programming  language, that you and other programmers can understand. You can use any  text editor to create and edit source files.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt; &lt;div style="font-weight: bold;"&gt;Compile the source file into a .class file&lt;/div&gt;The Java programming language &lt;i&gt;compiler&lt;/i&gt; (&lt;code&gt;javac&lt;/code&gt;)  takes your source file and translates its text into instructions that  the Java virtual machine can understand. The instructions contained  within this &lt;code&gt;.class&lt;/code&gt; file are known as &lt;em&gt;bytecodes&lt;/em&gt;.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt; &lt;div style="font-weight: bold;"&gt;Run the program&lt;/div&gt;The Java application &lt;i&gt;launcher tool&lt;/i&gt; (&lt;code&gt;java&lt;/code&gt;) uses the Java virtual machine to run your application.&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;&lt;a href="" id="unix-2a" name="unix-2a"&gt;&lt;/a&gt; Create a Source File&lt;/h3&gt;To create a source file, you have two options:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt; You can save the file &lt;code&gt; &lt;a class="SourceLink" href="http://docs.oracle.com/javase/tutorial/getStarted/application/examples/HelloWorldApp.java" target="_blank"&gt;&lt;code&gt;HelloWorldApp.java&lt;/code&gt;&lt;/a&gt;&lt;/code&gt; on your computer and avoid a lot of typing. Then, you can go straight to &lt;a href="http://docs.oracle.com/javase/tutorial/getStarted/cupojava/unix.html#unix-2b"&gt;Compile the Source File&lt;/a&gt;.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt; Or, you can use the following (longer) instructions.&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;First, open a shell, or "terminal," window.&lt;br /&gt;
&lt;center&gt;&lt;img align="bottom" alt="A new terminal window." height="463" src="http://docs.oracle.com/javase/tutorial/figures/getStarted/prompt.gif" width="669" /&gt;&lt;div class="FigureCaption"&gt;A new terminal window.&lt;/div&gt;&lt;/center&gt;When you first bring up the prompt, your &lt;i&gt;current directory&lt;/i&gt; will usually be your &lt;i&gt;home directory&lt;/i&gt;. You can change your current directory to your home directory at any time by typing &lt;code&gt;cd&lt;/code&gt; at the prompt and then pressing &lt;b&gt; Return&lt;/b&gt;.&lt;br /&gt;
The source files you create should be kept in a separate directory. You can create a directory by using the command &lt;code&gt;mkdir&lt;/code&gt;. For example, to create the directory &lt;code&gt;java&lt;/code&gt; in your home directory, use the following commands:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;pre&gt;cd
mkdir java
&lt;/pre&gt;&lt;/div&gt;To change your current directory to this new directory, you then enter:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;pre&gt;cd java
&lt;/pre&gt;&lt;/div&gt;Now you can start creating your source file.&lt;br /&gt;
Start the Pico editor by typing &lt;code&gt;pico&lt;/code&gt; at the prompt and pressing &lt;b&gt; Return&lt;/b&gt;. If the system responds with the message &lt;code&gt;pico: command not found&lt;/code&gt;, then Pico is most likely unavailable. Consult your system administrator for more information, or use another editor.&lt;br /&gt;
When you start Pico, it'll display a new, blank &lt;i&gt;buffer&lt;/i&gt;. This is the area in which you will type your code.  &lt;br /&gt;
Type the following code into the new buffer:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;pre&gt;/**
&amp;nbsp;* The HelloWorldApp class implements an application that
&amp;nbsp;* simply prints "Hello World!" to standard output.
&amp;nbsp;*/
class HelloWorldApp {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String[] args) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println("Hello World!"); // Display the string.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}
&lt;/pre&gt;&lt;/div&gt;&lt;b&gt;Be Careful When You Type&lt;/b&gt; &lt;img alt="uppercase letter A" height="36" src="http://docs.oracle.com/javase/tutorial/figures/getStarted/typeA.gif" width="51" /&gt;&amp;nbsp;&amp;nbsp; &lt;img alt="lowercase letter A" height="36" src="http://docs.oracle.com/javase/tutorial/figures/getStarted/typea2.gif" width="51" /&gt;&lt;br /&gt;
&lt;div class="note"&gt;&lt;hr /&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Type all code, commands, and file names exactly as shown. Both the compiler (&lt;code&gt;javac&lt;/code&gt;) and launcher (&lt;code&gt;java&lt;/code&gt;) are &lt;em&gt;case-sensitive&lt;/em&gt;, so you must capitalize consistently.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;HelloWorldApp&lt;/code&gt; is &lt;em&gt;not&lt;/em&gt; the same as &lt;code&gt;helloworldapp&lt;/code&gt;. &lt;hr /&gt;&lt;/div&gt;Save the code in a file with the name &lt;code&gt;HelloWorldApp.java&lt;/code&gt;. In the Pico editor, you do this by typing &lt;b&gt; Ctrl-O&lt;/b&gt; and then, at the bottom where you see the prompt &lt;code&gt;File Name to write:&lt;/code&gt;, entering the directory in which you wish to create the file, followed by &lt;code&gt;HelloWorldApp.java&lt;/code&gt;. For example, if you wish to save &lt;code&gt;HelloWorldApp.java&lt;/code&gt; in the directory &lt;code&gt;/home/jdoe/java&lt;/code&gt;, then you type &lt;code&gt;/home/jdoe/java/HelloWorldApp.java&lt;/code&gt; and press &lt;b&gt; Return&lt;/b&gt;.&lt;br /&gt;
You can type &lt;b&gt; Ctrl-X&lt;/b&gt; to exit Pico.&lt;br /&gt;
&lt;h3&gt;&lt;a href="" id="unix-2b" name="unix-2b"&gt;&lt;/a&gt;Compile the Source File into a &lt;code&gt;.class&lt;/code&gt; File&lt;/h3&gt;Bring up another shell window. To compile your source file, change  your current directory to the directory where your file is located. For  example, if your source directory is &lt;code&gt;/home/jdoe/java&lt;/code&gt;, type the following command at the prompt and press &lt;b&gt; Return&lt;/b&gt;:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;pre&gt;cd /home/jdoe/java
&lt;/pre&gt;&lt;/div&gt;If you enter &lt;code&gt;pwd&lt;/code&gt; at the prompt, you should see the current directory, which in this example has been changed to &lt;code&gt;/home/jdoe/java&lt;/code&gt;.&lt;br /&gt;
If you enter &lt;code&gt;ls&lt;/code&gt; at the prompt, you should see your file.&lt;br /&gt;
&lt;center&gt;&lt;img align="bottom" alt="Results of the ls command, showing the .java source file." height="463" src="http://docs.oracle.com/javase/tutorial/figures/getStarted/firstls.gif" width="669" /&gt;&lt;div class="FigureCaption"&gt;Results of the &lt;code&gt;ls&lt;/code&gt; command, showing the &lt;code&gt;.java&lt;/code&gt; source file.&lt;/div&gt;&lt;/center&gt;Now are ready to compile the source file. At the prompt, type the following command and press &lt;b&gt; Return&lt;/b&gt;.&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;pre&gt;javac HelloWorldApp.java
&lt;/pre&gt;&lt;/div&gt;The compiler has generated a bytecode file, &lt;code&gt;HelloWorldApp.class&lt;/code&gt;. At the prompt, type &lt;code&gt;ls&lt;/code&gt; to see the new file that was generated:  &lt;span id="figure:secondls.gif"&gt;the following figure&lt;/span&gt;.&lt;br /&gt;
&lt;center&gt;&lt;img align="bottom" alt="Results of the ls command, showing the generated .class file." height="463" src="http://docs.oracle.com/javase/tutorial/figures/getStarted/secondls.gif" width="669" /&gt;&lt;div class="FigureCaption"&gt;Results of the &lt;code&gt;ls&lt;/code&gt; command, showing the generated &lt;code&gt;.class&lt;/code&gt; file.&lt;/div&gt;&lt;/center&gt;Now that you have a &lt;code&gt;.class&lt;/code&gt; file, you can run your program.&lt;br /&gt;
If you encounter problems with the instructions in this step, consult the  &lt;a class="TutorialLink" href="http://docs.oracle.com/javase/tutorial/getStarted/problems/index.html" target="_top"&gt;Common Problems (and Their Solutions)&lt;/a&gt;.&lt;br /&gt;
&lt;h3&gt;&lt;a href="" id="unix-2c" name="unix-2c"&gt;&lt;/a&gt; Run the Program&lt;/h3&gt;In the same directory, enter at the prompt:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;pre&gt;java HelloWorldApp
&lt;/pre&gt;&lt;/div&gt;&lt;span id="figure:result.gif"&gt;The next figure&lt;/span&gt; shows what you should now see.&lt;br /&gt;
&lt;center&gt;&lt;img align="bottom" alt="The output prints Hello World! to the screen." height="463" src="http://docs.oracle.com/javase/tutorial/figures/getStarted/result.gif" width="669" /&gt;&lt;div class="FigureCaption"&gt;The output prints "Hello World!" to the screen.&lt;/div&gt;&lt;/center&gt;Congratulations! Your program works!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-4608570928862920108?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/4608570928862920108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/java-se-development-kit-6-jdk-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/4608570928862920108?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/4608570928862920108?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/java-se-development-kit-6-jdk-6.html' title='The Java SE Development Kit 6 (JDK 6)'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkQGQXw9eyp7ImA9WhRXF00.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-9202923822174288513</id><published>2011-12-23T20:17:00.000-08:00</published><updated>2011-12-23T20:18:40.263-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:18:40.263-08:00</app:edited><title>How to Install Drupal Tutorial</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="content clear-block"&gt;&amp;nbsp;&lt;img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACoCAIAAADVSURYAAAgAElEQVR4nOy9eWxs2XkfeO5+a99XFsnaF5LF4lIsVpHFYu37vi+sYrG47+QjH9/W7/VTL2pZ6lbbkBVDcjx/eOwociaOMRkE8MwgngEMR7ZlW5alVjyJg0wGM8BYltX2WIYXJJ4/vscrqt3tSIHglgVdHBCXt06de5bvd771fIWePHl6eXn1/Pkrjx49efXV119//Y033/zkW2+9/fGPv/nqq6//2I994s03P/nRj37sYx/7+Ntv/8Rbb739Uz/1mUePnrz11tuvv/7GJz7x1v37D9566+2PfvRjz5+/8vrrb9zcPLy+vnnppWf37z/Y3z+8f//BycnZ9vbuwcHRaLQzGAyLxfJwOMpm85lMrlAoZTK5UqmSSmXy+WK/vxkKhXO5QjKZbre7UCeTyTUarU6n1253t7d3h8NRpVLr9fq9Xr9YLPf7m+1Wf2/3uFZtVyutYqGWSRf7G6NatV0pNzPpYq87jIST9Vpnc7BTrbTKpUat2s5mSulUIZ+rtFv9XLZcKTfjsUx4PZHNlIqFWmgtlk4VGvVuLluORVO5bCmVymQyuVgsUSyWK5VaOBwtFsvRaDwWS+RyhXq9mU5ni8Xy1tZ2u93dHOx02oNed1irtjvtQS5bbjZ6zUav1x22W/1mo5dK5rudzWqlVau2u53NSrk56G9n0sVsppRJF/O5SjyWyWZK2Uwpn6uUS41SsQ4fZTOlVDIPQ4iEk/AkvJ4olxrRSCq8nqiUm9lMqVZtl4r1eCwTi6Yr5WapWPcvr2XSxXarH42ksplSIV+NRlKZdDERz4bXE8lEDu4z6WK51ICZyWXL6VQBSiZdLBZqpWL9fUut2n7f0m7137d02oP3La3mxvuWcqnxviWXLb9vKRZqULgeQv337Xy+VI8Xy5FSOV6oJvLVVK6ZzjZzmVYu0yrne1v943p5MOjt1Gu9/sZoa7Q32j7obxx12gdbw4ut4cX26N7x0eOjw0enJy+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NShW2dXd8ehrraOrtb2Q/tcHfs6Ovd3dh/o6n7rwIG3DhzYu9991G1fm2tfm2v/gRH2tsv1RpvrddcI2+1y7Xa53mhv122Py31809XmOtjucrnaPLS3t3d0dHR2do7V/t3d3QcPHjx+/PixY8eOHDmyd+/e/fv3X716taen5/z58xcvXvzggw/g1KlTg4ODFy9e7O3tvXTpEvaPl33EpSuXBwYvnx8YOtN78cjZvo7j5/d1n36z49Tugyf2Hu7Zf6y//cRg27EL+7vO7zt0ru1wT8eJvkMn+w6eOn/wVN8oO9wz1HXuYsfpC23Hz+87fO6tQ6ffaD+xq+3YL9/q2tV2orW7t/3E4P4jfa/tP/azX7f988/f+Plr7T9/rf1ff93+r79u/9krLt1++eaR1w+c3Nd95tCZviN9/Uf7+7t7+7p6+lqPnG3t7m3t7vdYT+uRswe6z7iOnO44erb7xLmTZ3rP9w4ODg5duXT1N1eu/ubS0G8uDV25PHj5yuDly0OXrgxdvDp08erQ/TbRxTEYHIP7/fwrly5fuTT6ouh28crli1cuD14dtv6Lg3e13oELd1r/wIUL/UMD/YMD/RcGLpy/MNBzYaCnf+B8/8CF/sHfHDs10Oo6vvvtrr2uox1HTx8733t6sK9vaLBv6EL/0IX+oQsDFwd1G7p0pXdg8HRP39FTZ7tPnz3e03tmcOj85Stn+wbO9vd727m+/nN9/ecvDJy/MNDXP8J6BgZODgwcGxxhxwcGjg8MnBgcPDE4eGqknR64cOLk6Z6enoGBgaGhIWz5S5cuXblyZaz2Hxoa6uvrGxoa6unpGRoaGhwcfO+9986ePdvb23vt2jVU3P8DPI5tbGcGaRIAAAAASUVORK5CYII=" /&gt;&lt;br /&gt;
Installing Drupal has gotten easier and easier throughout the years. It can be broken down into these steps.&lt;br /&gt;
1. Downloading and preparing the Drupal installation files&lt;br /&gt;
2. Setting up the mySQL database&lt;br /&gt;
3. Running the drupal install program&lt;br /&gt;
&lt;h3&gt;Downloading and preparing the Drupal install files&lt;/h3&gt;You can download the latest drupal installation files from &lt;a href="http://www.drupal.org/" target="_blank"&gt;drupal.org&lt;/a&gt;.  Drupal compresses all of its install files in a tar and gzip format. To  extract these on a windows machine you need a special program. There  are many of them out there, but one of the easiest (and free  open-source) ones to use is &lt;a href="http://www.7-zip.org/" target="_blank"&gt;7-Zip&lt;/a&gt;. Once you install 7Zip you can right click on the drupal.tar.gz file and click &lt;b&gt;7-Zip-&amp;gt;Extract Here&lt;/b&gt;. Then you will have a drupal.tar file in the current folder. Right click and click &lt;b&gt;7-Zip-&amp;gt;Extract Here&lt;/b&gt;  again and you will have a drupal folder. Copy this folder to your web  site folder. If you are using WAMP in the default location it will be  c:\wamp\www.&lt;br /&gt;
I like to setup my sites under sub folders in the www folder. For  example this site is located under the c:\wamp\www\drupal on my local  computer. Another site I have that is for Visual Basic tutorials is  located under c:\wamp\www\vb6. I highly recommend you do this as well.  If you are only administering one site you probably can just copy all of  the folders you extracted from the drupal install folder into your root  web folder (c:\wamp\www) but than you can only have one drupal  installation at a time. &lt;br /&gt;
If you do put the files in a sub directory under your main web folder  here's what you can do to set things up so that it acts like its own  web site (instead of a subdirectory of a web site). If you don't  understand what I'm saying follow along and it will make sense. Say that  you copied all of the drupal data into a sub folder of your www folder  called mysite. Now your web site would be located at  (c:\wamp\www\mysite). If you want to go to your web site through a web  browser you would type in &lt;a href="http://localhost/mysite" title="http://localhost/mysite"&gt;http://localhost/mysite&lt;/a&gt;. The problem is if you upload your new site to (&lt;a href="http://www.mysite.com/" title="www.mysite.com"&gt;www.mysite.com&lt;/a&gt;)  anything images or files that are referenced through /mysite/ will be  broke. Because of this we need to set up an alias so that you can type &lt;a href="http://mysite.localhost/" title="http://mysite.localhost"&gt;http://mysite.localhost&lt;/a&gt; into your web browser instead of &lt;a href="http://localhost/mysite" title="http://localhost/mysite"&gt;http://localhost/mysite&lt;/a&gt;.&lt;br /&gt;
To do this we need to change a couple of files. The first is your  apache configuration file (httpd.conf). If you are using the default  WAMP install it will be located at  c:\wamp\bin\apache\apache2.2.6\conf\http.conf. Open this file in a text  editor and find the line that reads:&lt;br /&gt;
&lt;pre&gt;ServerName localhost:80 &lt;/pre&gt;Now we are going to add our new sites virtual host information.  Add these lines below the ServerName line.&lt;br /&gt;
&lt;pre&gt;NameVirtualHost *:80

&amp;lt;VirtualHost *:80&amp;gt;
  DocumentRoot "c:/wamp/www/"
  ServerName localhost
&amp;lt;/VirtualHost&amp;gt;

&amp;lt;VirtualHost *:80&amp;gt;
  DocumentRoot "c:/wamp/www/mysite"
  ServerName mysite.localhost
  ServerAlias mysite
&amp;lt;/VirtualHost&amp;gt;
&lt;/pre&gt;This tells apache that anytime someone requests a server through &lt;a href="http://localhost/" title="http://localhost"&gt;http://localhost&lt;/a&gt; it should serve pages located at c:/wamp/www/ where as any time someone requests a server through &lt;a href="http://mysite.localhost/" title="http://mysite.localhost"&gt;http://mysite.localhost&lt;/a&gt;  it should serve pages located at c:/wamp/www/mysite. Now if localhost  was actually a domain we owned and registered than we would be done.  However, localhost is a unique name that maps to our computer using the  loop back ip (127.0.0.1) if you don't know what that means that's ok but  basically you need to understand that anytime you type &lt;a href="http://localhost/" title="http://localhost"&gt;http://localhost&lt;/a&gt;  Windows looks in a local file finds an entry for localhost and knows to  route everything back to this computer. That file is is called the  hosts file and it is located at C:\Windows\System32\drivers\etc\hosts.  If you open this file in notepad you will see an entry that looks like  this:&lt;br /&gt;
&lt;pre&gt;127.0.0.1       localhost &lt;/pre&gt;This tells Windows to reroute any requests to &lt;a href="http://localhost/" title="http://localhost"&gt;http://localhost&lt;/a&gt; back to our computer (127.0.0.1). Below this line we need to add a line that looks like this:&lt;br /&gt;
&lt;pre&gt;127.0.0.1       mysite.localhost &lt;/pre&gt;This will then tell  windows to also route any requests to mysite.localhost to our computer.  Than apache will see that we are requesting mysite.localhost instead of  just localhost and will use the alias we set up in the httpd.conf to  serve the files in c:\wamp\www\mysite. Few - that's a lot of explanation  for just a few steps, but by understanding all this you are way ahead  of the game if you ever want to host your own server down the road. Plus  its just good to know.&lt;br /&gt;
&lt;h3&gt;Setting up the mySQL database&lt;/h3&gt;Now that our server settings are all set up and we have the drupal  files copied over lets set up our mySQL database. In the past you had to  install all of the SQL data using a script. Now, however, all you need  to do is set up a blank database and know your username and password. We  are going to use phpMyAdmin to do this. If you installed WAMP you can  go to &lt;a href="http://localhost/phpmyadmin" title="http://localhost/phpmyadmin"&gt;http://localhost/phpmyadmin&lt;/a&gt;.  Once there type in the name for your database (i.e. mysite) under the  Create new database field. Then click the Create button. That is it. You  can also add a custom user that has access to your database by clicking  the Privileges link. If you do this make sure you give that user full  access to everything in your mysite database.&lt;br /&gt;
&lt;img height="419" src="http://www.rundrupal.com/files/tutorials/Installing-Drupal/phpmyadmin.jpg" width="400" /&gt;&lt;br /&gt;
Now that you have the database set up you need to remember (or write  down) the following information. The name of your database, the  username, and the password to access the database.&lt;br /&gt;
&lt;h2&gt;Running the drupal install program &lt;/h2&gt;Installing Drupal is one of the easiest parts of this Drupal tutorial. All you have to do is go to &lt;a href="http://mysite.localhost/" title="http://mysite.localhost"&gt;http://mysite.localhost&lt;/a&gt; and you should see a screen that looks like this:&lt;br /&gt;
&lt;img height="540" src="http://www.rundrupal.com/files/tutorials/Installing-Drupal/install1.jpg" width="639" /&gt; &lt;br /&gt;
If I were you I would probably select english (unless of course you  understand another language or want to have some fun). After that it  should skip by the verifying requirements sections unless you have an  error in your setup. If this is the case follow the onscreen  instructions to solve your error.&lt;br /&gt;
Next you will enter the database information I told you to remember  earlier.  Enter the database info, the username, and the password. I  would leave the advanced settings alone for now. Click the Save and  Continue button.&lt;br /&gt;
You should now see a status screen as drupal is installed. It usually  only takes a minute or two. Next the Drupal install program will ask  you to set up your new site! Type in the info it asks. Make sure you  remember the administrator username and password (this is different than  your database username and password). You will use this to log in to  your drupal site and administer all the different settings and to add  content. Also if you have the option I suggest you turn on clean URL's.  If you don't do this your web page addresses will look like this  http://mysite.localhost/index.php?q='mypage'. If you do turn on clean  URL's the same page will have the address &lt;a href="http://mysite.localhost/mypage" title="http://mysite.localhost/mypage"&gt;http://mysite.localhost/mypage&lt;/a&gt;.  Also this makes your Drupal site much more likely to be indexed and  ranked well by search engines. This is called making your site Search  Engine Friendly. &lt;br /&gt;
Once you are done setting you will have a full fledged drupal web  site up and running. Check it out at mysite.localhost. Have a look  around, start changing the default settings. Read on this site more  tutorials and have a great time. Once you get your site online somewhere  post a comment below letting me know or send me an email. I love to see  what people are doing with these tutorials. &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-9202923822174288513?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/9202923822174288513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/how-to-install-drupal-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/9202923822174288513?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/9202923822174288513?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/how-to-install-drupal-tutorial.html' title='How to Install Drupal Tutorial'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A04NRHs7fSp7ImA9WhRXFkQ.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-6748923057764614107</id><published>2011-12-23T20:13:00.001-08:00</published><updated>2011-12-23T20:13:15.505-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:13:15.505-08:00</app:edited><title>Computer Tutorials, A Learning Experience For Everyone</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Welcome!&lt;br /&gt;
Thanks for taking a moment visiting this site! Here we have  guaranteed computer tutorials completely free for you with simple step  by step procedures to help you learn and visualize your work with  confidence.&lt;br /&gt;
My goal is to give you a solid foundation. Whether you have specific questions about computers (example, &lt;a href="http://www.fix-your-computer-today.com/computer-is-slow.html"&gt;Why is my computer running slow?&lt;/a&gt;, &lt;a href="http://www.fix-your-computer-today.com/create-a-folder.html"&gt; how do I create a folder in Windows?&lt;/a&gt;),  or simply feel like learning everything, here you will find the  information that you're looking for and gain the skills you need to keep  your computer running at its best.&lt;br /&gt;
Let me ask you something, do you feel frustrated because  your computer's performance is very slow and is not working the way you  want? Do you feel that your computer gets slower every time you use it  and you don’t have the money to take it to the computer technician to  fix it?&lt;br /&gt;
&lt;img alt="Fix it now" src="http://www.fix-your-computer-today.com/image-files/repearing_computer.jpg" style="float: left; height: 254px; margin: 0 20px 0 0; width: 250px;" title="repearing_computer" /&gt; Perhaps you wish there was a magic button that you could press and fix everything.&lt;br /&gt;
Though I cannot tell you that a button will fix your  computer, I can however promise you that by investing a little bit of  your time, I can show you, through a series of computer tutorials how to  fix those frustrating every day computer problems.&lt;br /&gt;
You will discover through this site that most computer  problems can be fixed quite easily by keeping simple maintenance on your  PC, and by understanding how they work.&lt;br /&gt;
So jump in and begin checking these computer tutorials out. You can start first looking into the &lt;b&gt;free computer help&lt;/b&gt; and the &lt;b&gt;basic computer troubleshooting&lt;/b&gt;  pages below. This site is tailored to everyone who has always wanted to  learn about computers, but has not had the chance to do so. In other  words, this site is for you. I will show you ways to keep your computer  up and running just the way you want it.&lt;br /&gt;
From now on, the next time you find yourself with a computer  problem, just relax, take a deep breath, and check out this web site.  You will find the solution here.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-6748923057764614107?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/6748923057764614107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/computer-tutorials-learning-experience.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/6748923057764614107?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/6748923057764614107?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/computer-tutorials-learning-experience.html' title='Computer Tutorials, A Learning Experience For Everyone'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A08ER344fip7ImA9WhRXFkQ.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-936790625042237031</id><published>2011-12-23T20:10:00.000-08:00</published><updated>2011-12-23T20:10:06.036-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:10:06.036-08:00</app:edited><title>How to Change Post Title Background Color in Blogger Templates</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="post-body entry-content"&gt; &lt;div class="separator" style="clear: both; margin: 10px 0; text-align: center;"&gt;&lt;a href="http://www.betatemplates.com/2011/12/how-change-post-title-background-color.html" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="142" src="http://2.bp.blogspot.com/-QdacsDWdNKc/Tux4xHv7k3I/AAAAAAAAFd8/oY9BmVeeQNk/s400/Blogger%2B%2BTemplate%2BDesigner%2Btutorial.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;A  reader emailed me and asked about changing the post title background  color, so here it is. In this tutorial I'll tell you how to change the  post title background color in Blogspot templates. As usual, we'll do  some editing in the template's HTML code and after that, you'll be able  to change the post background color from &lt;b&gt;Blogger Template Designer&lt;/b&gt;. So, here are the simple steps to follow:&lt;br /&gt;
&lt;/div&gt;&lt;div class="jump-link"&gt; &lt;a href="http://www.betatemplates.com/2011/12/how-change-post-title-background-color.html#more" title="How to Change Post Title Background Color in Blogger Templates"&gt;Continue Reading &amp;gt;&amp;gt;&lt;/a&gt; &lt;div id="lws_0"&gt;&lt;div class="linkwithin_outer" style="border: 0; clear: both; margin: 0; padding: 0;"&gt; &lt;div class="linkwithin_inner" style="border: 0; margin: 0; padding: 0; width: 596px;"&gt;     &lt;div class="linkwithin_text" id="linkwithin_text_0" style="border: 0; font-weight: bold; margin: 0; padding: 20px 0 5px; text-align: left;"&gt;         You might also like:     &lt;/div&gt;&lt;div class="linkwithin_posts" style="border: 0; margin: 0; padding: 0;"&gt;            &lt;a href="http://www.betatemplates.com/2011/08/how-to-change-post-title-color-in.html" name="linkwithin_link_0" style="border-bottom: none; border-right: 1px solid #ddd; cursor: pointer; display: block; float: left; margin: 0; padding: 6px; text-align: left; text-decoration: none;"&gt; &lt;div style="border: 0; height: 165px; margin: 0; padding: 0; width: 106px;"&gt;  &lt;div class="linkwithin_img_0" style="border: 1px solid #ddd; height: auto; margin: 0; padding: 2px; width: auto;"&gt;         &lt;/div&gt;&lt;div class="linkwithin_title linkwithin_title_0" style="border: 0pt none; color: #555555; font: 12px arial; margin: 3px 0pt 0pt; padding: 0pt;"&gt;     How To Change Post Title Color in Picture Window Template &lt;/div&gt;&lt;/div&gt;&lt;/a&gt;  &lt;a href="http://www.betatemplates.com/2010/06/change-post-title-color-template.html" name="linkwithin_link_0" style="border-bottom: medium none; border-right: 1px solid rgb(221, 221, 221); cursor: pointer; display: block; float: left; margin: 0pt; padding: 6px; text-align: left; text-decoration: none;"&gt; &lt;div style="border: 0; height: 165px; margin: 0; padding: 0; width: 106px;"&gt;  &lt;div class="linkwithin_img_0" style="border: 1px solid #ddd; height: auto; margin: 0; padding: 2px; width: auto;"&gt;         &lt;/div&gt;&lt;div class="linkwithin_title linkwithin_title_0" style="border: 0pt none; color: #555555; font: 12px arial; margin: 3px 0pt 0pt; padding: 0pt;"&gt;     Blogspot How To: Change Post Title Color in Blogger ... &lt;/div&gt;&lt;/div&gt;&lt;/a&gt;  &lt;a href="http://www.betatemplates.com/2009/06/how-change-post-title-font-color.html" name="linkwithin_link_0" style="border-bottom: medium none; border-right: 1px solid rgb(221, 221, 221); cursor: pointer; display: block; float: left; margin: 0pt; padding: 6px; text-align: left; text-decoration: none;"&gt; &lt;div style="border: 0; height: 165px; margin: 0; padding: 0; width: 106px;"&gt;  &lt;div class="linkwithin_img_0" style="border: 1px solid #ddd; height: auto; margin: 0; padding: 2px; width: auto;"&gt;         &lt;/div&gt;&lt;div class="linkwithin_title linkwithin_title_0" style="border: 0pt none; color: #555555; font: 12px arial; margin: 3px 0pt 0pt; padding: 0pt;"&gt;     Blogspot How to: Change Post Title Font, Size &amp;amp; Color &lt;/div&gt;&lt;/div&gt;&lt;/a&gt;  &lt;a href="http://www.betatemplates.com/2010/11/blogspot-how-to-center-post-title.html" name="linkwithin_link_0" style="border-bottom: medium none; border-right: 1px solid rgb(221, 221, 221); cursor: pointer; display: block; float: left; margin: 0pt; padding: 6px; text-align: left; text-decoration: none;"&gt; &lt;div style="border: 0; height: 165px; margin: 0; padding: 0; width: 106px;"&gt;  &lt;div class="linkwithin_img_0" style="border: 1px solid #ddd; height: auto; margin: 0; padding: 2px; width: auto;"&gt;         &lt;/div&gt;&lt;div class="linkwithin_title linkwithin_title_0" style="border: 0pt none; color: #555555; font: 12px arial; margin: 3px 0pt 0pt; padding: 0pt;"&gt;     Blogspot How To: Center Post Title in New Blogger Templates &lt;/div&gt;&lt;/div&gt;&lt;/a&gt;  &lt;a href="http://www.betatemplates.com/2011/10/how-to-add-background-color-to-sidebar.html" name="linkwithin_link_0" style="border-bottom: medium none; cursor: pointer; display: block; float: left; margin: 0pt; padding: 6px; text-align: left; text-decoration: none;"&gt; &lt;div style="border: 0; height: 165px; margin: 0; padding: 0; width: 106px;"&gt;  &lt;div class="linkwithin_img_0" style="border: 1px solid #ddd; height: auto; margin: 0; padding: 2px; width: auto;"&gt;         &lt;/div&gt;&lt;div class="linkwithin_title linkwithin_title_0" style="border: 0pt none; color: #555555; font: 12px arial; margin: 3px 0pt 0pt; padding: 0pt;"&gt;     How to Add Background Color to Sidebar Widget Titles &lt;/div&gt;&lt;/div&gt;&lt;/a&gt;        &lt;/div&gt;&lt;div id="linkwithin_logo_0" style="border: 0; clear: both; margin: 0 0 20px 0; padding: 5px 6px 0 0; text-align: right;"&gt;         &lt;a href="http://www.linkwithin.com/learn?ref=widget" id="linkwithin_logolink_0" style="border-bottom: none; color: #bbbbbb; font: 10px arial; text-decoration: none;" target="_blank"&gt;&lt;b&gt;LinkWithin&lt;/b&gt;&lt;/a&gt;     &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href="" name="2005687132870244636"&gt;&lt;/a&gt; &lt;h3 class="post-title entry-title"&gt; &lt;a href="http://www.betatemplates.com/2011/10/how-to-add-background-color-to-sidebar.html"&gt;How to Add Background Color to Sidebar Widget Titles&lt;/a&gt; &lt;/h3&gt;&lt;div class="post-header"&gt; Posted by Bilal | Wednesday, October 05, 2011 | 0 Comments   &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.betatemplates.com/2011/10/how-to-add-background-color-to-sidebar.html" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="124" src="http://1.bp.blogspot.com/-tYMNP27Lk2Y/TowtoHOS8CI/AAAAAAAAFdY/MtG-ZORszsI/s400/how%2Bto%2Bchange%2Bbackground%2Bcolor%2Bsidebar%2Bwidget%2Bpost%2Btitles%2Bblogger.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
A reader has requested this tutorial to add background color to sidebar  titles. By default, Blogger only allows to change the font &amp;amp; color  of sidebar widget titles. So, I'll try to make it as simple as possible  &amp;amp; you'll be able to change the background color from the Template  Designer.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-936790625042237031?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/936790625042237031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/how-to-change-post-title-background.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/936790625042237031?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/936790625042237031?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/how-to-change-post-title-background.html' title='How to Change Post Title Background Color in Blogger Templates'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-QdacsDWdNKc/Tux4xHv7k3I/AAAAAAAAFd8/oY9BmVeeQNk/s72-c/Blogger%2B%2BTemplate%2BDesigner%2Btutorial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0EAQ345eyp7ImA9WhRXFkQ.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-6802982928101884568</id><published>2011-12-23T20:07:00.000-08:00</published><updated>2011-12-23T20:07:22.023-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:07:22.023-08:00</app:edited><title>Final Image Preview</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet" height="600" src="http://cdn.photoshopstar.com/2011/9203/how-create-ice-planet.jpg" title="How to Create Ice Planet" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 1&lt;/h2&gt;Create a new document with 1000×1000 pixels. Press D to set up  foreground and background color as black (#000000) and white (#ffffff).  Fill layer with black color (#000000).&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 1" height="500" src="http://cdn.photoshopstar.com/2011/9203/1.jpg" title="How to Create Ice Planet 1" width="500" /&gt;&lt;/div&gt;Create a new layer, name it “Planet” and apply Filter &amp;gt; Render &amp;gt; Clouds.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 2" height="500" src="http://cdn.photoshopstar.com/2011/9203/2.jpg" title="How to Create Ice Planet 2" width="500" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 2&lt;/h2&gt;Apply Filter &amp;gt; Artistic &amp;gt; Plastic Warp (Highlight Strength:20, Detail:15, Smoothness: 2).&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 3" height="450" src="http://cdn.photoshopstar.com/2011/9203/3.jpg" title="How to Create Ice Planet 3" width="600" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 4" height="501" src="http://cdn.photoshopstar.com/2011/9203/4.jpg" title="How to Create Ice Planet 4" width="500" /&gt;&lt;/div&gt;Apply Filter &amp;gt; Distort &amp;gt; Polar Coordinates.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 5" height="388" src="http://cdn.photoshopstar.com/2011/9203/5.jpg" title="How to Create Ice Planet 5" width="424" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 6" height="501" src="http://cdn.photoshopstar.com/2011/9203/6.jpg" title="How to Create Ice Planet 6" width="500" /&gt;&lt;/div&gt;Apply Filter &amp;gt; Distort &amp;gt; Polar Coordinates again but changing option to Rectangular to Polar.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 7" height="388" src="http://cdn.photoshopstar.com/2011/9203/7.jpg" title="How to Create Ice Planet 7" width="424" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 8" height="501" src="http://cdn.photoshopstar.com/2011/9203/8.jpg" title="How to Create Ice Planet 8" width="500" /&gt;&lt;/div&gt;Use Filter &amp;gt; Distort &amp;gt; Sphesize.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 9" height="416" src="http://cdn.photoshopstar.com/2011/9203/9.jpg" title="How to Create Ice Planet 9" width="452" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 10" height="500" src="http://cdn.photoshopstar.com/2011/9203/10.jpg" title="How to Create Ice Planet 10" width="501" /&gt;&lt;/div&gt;Apply Filter &amp;gt; Distort &amp;gt; Sphesize one more time updating Amount to 50%.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 11" height="416" src="http://cdn.photoshopstar.com/2011/9203/11.jpg" title="How to Create Ice Planet 11" width="452" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 12" height="500" src="http://cdn.photoshopstar.com/2011/9203/12.jpg" title="How to Create Ice Planet 12" width="501" /&gt;&lt;/div&gt;Apply Filter &amp;gt; Distort &amp;gt; Pinch.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 13" height="379" src="http://cdn.photoshopstar.com/2011/9203/13.jpg" title="How to Create Ice Planet 13" width="484" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 14" height="500" src="http://cdn.photoshopstar.com/2011/9203/14.jpg" title="How to Create Ice Planet 14" width="501" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 3&lt;/h2&gt;With Elliptical Marquee Tool select planet. After that invert selection with Select &amp;gt; Inverse.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 15" height="500" src="http://cdn.photoshopstar.com/2011/9203/15.jpg" title="How to Create Ice Planet 15" width="500" /&gt;&lt;/div&gt;Press Delete to clear selected area and remove selection with Ctrl+D.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 16" height="501" src="http://cdn.photoshopstar.com/2011/9203/16.jpg" title="How to Create Ice Planet 16" width="500" /&gt;&lt;/div&gt;Go to Edit &amp;gt; Transform &amp;gt; Scale to reduce planet size a bit (keep pressing SHIFT to maintain proportions).&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 17" height="415" src="http://cdn.photoshopstar.com/2011/9203/17.jpg" title="How to Create Ice Planet 17" width="415" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 4&lt;/h2&gt;Duplicate “Planet” layer with Ctrl+J and apply Filter &amp;gt; Brush  Strokes &amp;gt; Dark Strokes (Balance: 5, Black Intensity: 2, White  Intensity: 2).&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 18" height="450" src="http://cdn.photoshopstar.com/2011/9203/18.jpg" title="How to Create Ice Planet 18" width="600" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 19" height="501" src="http://cdn.photoshopstar.com/2011/9203/19.jpg" title="How to Create Ice Planet 19" width="500" /&gt;&lt;/div&gt;Update layer mode to Soft Light on current layer.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 20" height="501" src="http://cdn.photoshopstar.com/2011/9203/20.jpg" title="How to Create Ice Planet 20" width="500" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 5&lt;/h2&gt;Duplicate again “Planet” layer with Ctrl+J and move it on top of all  layers. Apply Filter &amp;gt; Sketch &amp;gt; Bas Relief (Detail: 13,  Smoothness: 2, Light: Bottom Right).&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 21" height="450" src="http://cdn.photoshopstar.com/2011/9203/21.jpg" title="How to Create Ice Planet 21" width="600" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 22" height="500" src="http://cdn.photoshopstar.com/2011/9203/22.jpg" title="How to Create Ice Planet 22" width="501" /&gt;&lt;/div&gt;Update layer mode to Soft Light on current layer.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 23" height="501" src="http://cdn.photoshopstar.com/2011/9203/23.jpg" title="How to Create Ice Planet 23" width="500" /&gt;&lt;/div&gt;Select Eraser Tool (Opacity: 30%, Size: 40px) and with a soft round brush remove the relief of ice surfaces.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 24" height="501" src="http://cdn.photoshopstar.com/2011/9203/24.jpg" title="How to Create Ice Planet 24" width="500" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 6&lt;/h2&gt;Duplicate again “Planet” layer with Ctrl+J and move it on top of all  layers. Apply Filter &amp;gt; Sketch &amp;gt; Note Paper (Image Balance: 25,  Graininess: 10, Relief: 11).&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 25" height="450" src="http://cdn.photoshopstar.com/2011/9203/25.jpg" title="How to Create Ice Planet 25" width="600" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 26" height="500" src="http://cdn.photoshopstar.com/2011/9203/26.jpg" title="How to Create Ice Planet 26" width="501" /&gt;&lt;/div&gt;Update layer mode to Overlay on current layer.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 27" height="488" src="http://cdn.photoshopstar.com/2011/9203/27.jpg" title="How to Create Ice Planet 27" width="600" /&gt;&lt;/div&gt;Select Eraser Tool again (Opacity: 30%, Size: 40px) and with a soft round brush remove too monotonous plots.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 28" height="489" src="http://cdn.photoshopstar.com/2011/9203/28.jpg" title="How to Create Ice Planet 28" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 7&lt;/h2&gt;Duplicate again “Planet” layer with Ctrl+J and move it on top of all  layers. Apply Filter &amp;gt; Sketch &amp;gt; Plaster (Image Balance: 20,  Smoothness: 2).&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 29" height="450" src="http://cdn.photoshopstar.com/2011/9203/29.jpg" title="How to Create Ice Planet 29" width="600" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 30" height="484" src="http://cdn.photoshopstar.com/2011/9203/30.jpg" title="How to Create Ice Planet 30" width="600" /&gt;&lt;/div&gt;Update layer mode to Darker Color on current layer.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 31" height="488" src="http://cdn.photoshopstar.com/2011/9203/31.jpg" title="How to Create Ice Planet 31" width="600" /&gt;&lt;/div&gt;Select Eraser Tool again (Opacity: 30%, Size: 100px) and with a soft  round brush clean almost all layer content leaving only some areas to  soften edges.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 32" height="500" src="http://cdn.photoshopstar.com/2011/9203/32.jpg" title="How to Create Ice Planet 32" width="500" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 8&lt;/h2&gt;Duplicate again “Planet” layer with Ctrl+J and move it on top of all layers. Update layer mode to Hard Light on current layer.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 33" height="595" src="http://cdn.photoshopstar.com/2011/9203/33.jpg" title="How to Create Ice Planet 33" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 9&lt;/h2&gt;Create a new layer on top of all other layers. Update layer mode to  Screen, select Brush Tool (Opacity: 10%, Size: 90px) and lighten up  darker water areas with white color.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 34" height="557" src="http://cdn.photoshopstar.com/2011/9203/34.jpg" title="How to Create Ice Planet 34" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 10&lt;/h2&gt;Create a new layer on top of all other layers. Update layer mode to  Color. Set foreground color to #47639a, select Brush Tool (Opacity: 10%,  Size: 400px) and start applying to ice areas of the planet. If  necessary increase or decrease a little brush opacity.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 35" height="557" src="http://cdn.photoshopstar.com/2011/9203/35.jpg" title="How to Create Ice Planet 35" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 11&lt;/h2&gt;We need to add stars around the planet. With Brush Tool selected and a  soft round brush (Size: 5px to start) press F5 to access brush presets.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 36" height="459" src="http://cdn.photoshopstar.com/2011/9203/36.jpg" title="How to Create Ice Planet 36" width="350" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 37" height="462" src="http://cdn.photoshopstar.com/2011/9203/37.jpg" title="How to Create Ice Planet 37" width="350" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 38" height="462" src="http://cdn.photoshopstar.com/2011/9203/38.jpg" title="How to Create Ice Planet 38" width="350" /&gt;&lt;/div&gt;Set foreground color to white, create a new layer on top and draw the stars. Keep updating brush size.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 39" height="585" src="http://cdn.photoshopstar.com/2011/9203/39.jpg" title="How to Create Ice Planet 39" width="600" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 40" height="585" src="http://cdn.photoshopstar.com/2011/9203/40.jpg" title="How to Create Ice Planet 40" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 12&lt;/h2&gt;Create a new layer on top. Press D button to set up foreground and  background colors as black and white and apply Filter &amp;gt; Render &amp;gt;  Clouds.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 41" height="587" src="http://cdn.photoshopstar.com/2011/9203/41.jpg" title="How to Create Ice Planet 41" width="600" /&gt;&lt;/div&gt;Update layer mode to Linear Dodge.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 42" height="585" src="http://cdn.photoshopstar.com/2011/9203/42.jpg" title="How to Create Ice Planet 42" width="600" /&gt;&lt;/div&gt;Select Eraser Tool (Opacity: 30%) and clean layer so that the result should be similar to mine.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="How to Create Ice Planet 43" height="584" src="http://cdn.photoshopstar.com/2011/9203/43.jpg" title="How to Create Ice Planet 43" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt; &lt;h2&gt;Step 13&lt;/h2&gt;To finish tutorial, create a new layer on top and update layer mode  to Soft Color. Select Brush Tool with soft round brush (Opacity:  15-20%), choose color #263c35 and start decorating nebula. Keep updating  brush color like i did and you will have a great result.&lt;br /&gt;
&lt;h2&gt;Final Image&lt;/h2&gt;&lt;div class="post_image"&gt;&lt;img alt="How to Create a Ice Planet" height="600" src="http://cdn.photoshopstar.com/2011/9203/how-create-ice-planet.jpg" title="How to Create a Ice Planet" width="600" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-6802982928101884568?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/6802982928101884568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/final-image-preview_23.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/6802982928101884568?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/6802982928101884568?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/final-image-preview_23.html' title='Final Image Preview'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0IMQHk7eCp7ImA9WhRXFkQ.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-8802507082041834471</id><published>2011-12-23T20:05:00.000-08:00</published><updated>2011-12-23T20:06:21.700-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:06:21.700-08:00</app:edited><title>Poster from the Words</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words" height="600" src="http://cdn.photoshopstar.com/2011/9208/poster-from-words.jpg" title="Poster from the Words" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt;Note: Original tutorial published on Photoshopstar.com had too many  errors. Being one the most popular tutorials, tutorial was rewritten and  now published.&lt;br /&gt;
&lt;h2&gt;Resources&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.stockvault.net/photo/107770/girl" target="_blank"&gt;Girl&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;hr /&gt;&lt;h2&gt;Step 1&lt;/h2&gt;First we are going to create a new document in Photoshop with  1000×1000 pixels with all the default settings. Fill the background  layer with black color.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 1" height="600" src="http://cdn.photoshopstar.com/2011/9208/1.jpg" title="Poster from the Words 1" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h2&gt;Step 2&lt;/h2&gt;Select Horizontal Type Tool and place any text (white color, caps on)  filling all background as you can see below. Only use one text layer.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 2" height="363" src="http://cdn.photoshopstar.com/2011/9208/2.jpg" title="Poster from the Words 2" width="600" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 3" height="363" src="http://cdn.photoshopstar.com/2011/9208/3.jpg" title="Poster from the Words 3" width="600" /&gt;&lt;/div&gt;Rotate text 45 degrees CW by going to Edit &amp;gt; Transform &amp;gt; Rotate.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 4" height="363" src="http://cdn.photoshopstar.com/2011/9208/4.jpg" title="Poster from the Words 4" width="600" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 4a" height="600" src="http://cdn.photoshopstar.com/2011/9208/4a.jpg" title="Poster from the Words 4a" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h2&gt;Step 3&lt;/h2&gt;Open photo and copy it to our canvas over text layer. Go to Edit &amp;gt;  Free Transform and resize photo to something similar to what I have.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 5" height="363" src="http://cdn.photoshopstar.com/2011/9208/5.jpg" title="Poster from the Words 5" width="600" /&gt;&lt;/div&gt;Select text from text layer (Ctrl+left click on text layer thumbnail  in layers). Press Ctrl+Shift+I to invert selection. With selection  active, select photo layer and press Delete to clear selection contents.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 6" height="363" src="http://cdn.photoshopstar.com/2011/9208/6.jpg" title="Poster from the Words 6" width="600" /&gt;&lt;/div&gt;Press Ctrl+D to deactivate selection.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 7" height="363" src="http://cdn.photoshopstar.com/2011/9208/7.jpg" title="Poster from the Words 7" width="600" /&gt;&lt;/div&gt;Apply Image &amp;gt; Adjustments &amp;gt; Brightness/Contrast.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 8" height="162" src="http://cdn.photoshopstar.com/2011/9208/8.jpg" title="Poster from the Words 8" width="342" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 9" height="363" src="http://cdn.photoshopstar.com/2011/9208/9.jpg" title="Poster from the Words 9" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h2&gt;Step 4&lt;/h2&gt;Create a new layer. Select Horizontal Tool (Arial, white color, 55px)  and write something like “DJ Music!”. Create a second new layer and  write “Only best hits!” (Arial, white color, 25px).&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 10" height="363" src="http://cdn.photoshopstar.com/2011/9208/10.jpg" title="Poster from the Words 10" width="600" /&gt;&lt;/div&gt;Rotate text 45 degrees CW by going to Edit &amp;gt; Transform &amp;gt; Rotate on both layers.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 11" height="363" src="http://cdn.photoshopstar.com/2011/9208/11.jpg" title="Poster from the Words 11" width="600" /&gt;&lt;/div&gt;Apply Layer &amp;gt; Layer Style &amp;gt; Blending Options &amp;gt; Outer Glow to both layer to make it more readable.&lt;br /&gt;
&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 12" height="454" src="http://cdn.photoshopstar.com/2011/9208/12.jpg" title="Poster from the Words 12" width="610" /&gt;&lt;/div&gt;&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words 13" height="363" src="http://cdn.photoshopstar.com/2011/9208/13.jpg" title="Poster from the Words 13" width="600" /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;h2&gt;Final Image&lt;/h2&gt;&lt;div class="post_image"&gt;&lt;img alt="Poster from the Words" height="600" src="http://cdn.photoshopstar.com/2011/9208/poster-from-words.jpg" title="Poster from the Words" width="600" /&gt;&lt;/div&gt;This tutorial is now finished and you got a great effect!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-8802507082041834471?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/8802507082041834471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/final-image-preview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/8802507082041834471?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/8802507082041834471?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/final-image-preview.html' title='Poster from the Words'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0UDSHc-fCp7ImA9WhRXFkQ.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-1950874258090740061</id><published>2011-12-23T20:01:00.001-08:00</published><updated>2011-12-23T20:01:19.954-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T20:01:19.954-08:00</app:edited><title>III. Backlinks – Another Important SEO Item</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="margin-left: 1em;"&gt; &lt;img height="258" src="http://www.webconfs.com/comics/comic18.gif" width="853" /&gt; &lt;/div&gt;&lt;br /&gt;
&lt;div style="float: left; margin-right: 1em;"&gt;  &lt;ins style="border: none; display: inline-table; height: 250px; margin: 0; padding: 0; position: relative; visibility: visible; width: 300px;"&gt;&lt;ins id="aswift_2_anchor" style="border: none; display: block; height: 250px; margin: 0; padding: 0; position: relative; visibility: visible; width: 300px;"&gt;&lt;/ins&gt;&lt;/ins&gt; &lt;/div&gt;&lt;h2&gt;&lt;a href="" name="What are Backlinks?|outline"&gt;&lt;/a&gt;What are Backlinks?&lt;/h2&gt;&lt;div align="justify"&gt; In layman's terms, there are two types of links: inbound and outbound.  Outbound links start from your site and lead to an external site, while  inbound links or &lt;b&gt;backlinks&lt;/b&gt;, come from an external site to yours.  e.g. if cnn.com links to yourdomain.com, the link from cnn.com is a  backlink (inbound) for yourdomain.com, however the link is an outbound  link from cnn.com's perspective. Backlinks are among the main building  blocks to good Search Engine Optimisation (SEO).  &lt;/div&gt;&lt;h2&gt;&lt;a href="" name="Why Backlinks Are Important|outline"&gt;&lt;/a&gt;Why Backlinks Are Important&lt;/h2&gt;&lt;div align="justify"&gt; The number of backlinks is an indication of the popularity or importance  of that website. Backlinks are important for SEO because some search  engines like Google, give more credit to websites that have a large  number of quality backlinks, and consider those websites more relevant  than others in their results pages for a search query. &lt;/div&gt;&lt;div style="float: right; margin-left: 1em;"&gt; &lt;img height="264" src="http://www.webconfs.com/comics/comic-seo-dump.gif" width="300" /&gt; &lt;/div&gt;&lt;div align="justify"&gt; Therefore, when search engines calculate the relevance of a site to a  keyword, they not only consider the number of backlinks to that site but  also their quality. In order to determine the quality, a search engine  considers the content of the sites. When backlinks to your site come  from other sites, and those sites have content related to your site,  these backlinks  are considered more relevant to your site. If backlinks  are found on sites with unrelated content, they are considered less  relevant. The higher the relevance of backlinks, the greater their  quality.  &lt;/div&gt;&lt;div align="justify"&gt; For example, if a webmaster has a website about how to rescue orphaned  dogs, and received a backlink from another website about dogs, then that  would be more relevant in a search engine's assessment than say a link  from a site about car racing. Therefore, higher the relevance of the  site linking back to your website, the better the quality of the  backlink. &lt;/div&gt;&lt;div align="justify"&gt; Search engines want websites to have a level playing field, and look for  natural links built slowly over time. While it is fairly easy to modify  your webpages to make them more SEO friendly it is a lot harder for you  to influence other websites and get them to link to your website. This  is the reason search engines regard backlinks as a very important  factor. Further, search engine's criteria for quality backlinks has  gotten even tougher, thanks to unscrupulous webmasters trying to achieve  these backlinks by deceptive or sneaky techniques, such as hidden  links, or automatically generated pages whose sole purpose is to provide  backlinks to websites. These pages are called link farms, and they are  not only disregarded by search engines, but linking to a link farm could  get your site banned entirely.  &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-1950874258090740061?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/1950874258090740061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/iii-backlinks-another-important-seo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/1950874258090740061?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/1950874258090740061?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/iii-backlinks-another-important-seo.html' title='III. Backlinks – Another Important SEO Item'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0YCR3c5fyp7ImA9WhRXFkQ.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-5152960290833947668</id><published>2011-12-23T19:59:00.000-08:00</published><updated>2011-12-23T19:59:26.927-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T19:59:26.927-08:00</app:edited><title>Keywords – the Most Important Item in SEO</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt; &lt;img height="256" src="http://www.webconfs.com/comics/comic4_b.gif" width="851" /&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;div style="float: left; margin-right: 1em;"&gt;  &lt;ins style="border: none; display: inline-table; height: 250px; margin: 0; padding: 0; position: relative; visibility: visible; width: 300px;"&gt;&lt;ins id="aswift_2_anchor" style="border: none; display: block; height: 250px; margin: 0; padding: 0; position: relative; visibility: visible; width: 300px;"&gt;&lt;/ins&gt;&lt;/ins&gt; &lt;/div&gt;Keywords are the most important SEO element for every search engine,  they are what search strings are matched against. Choosing the right  keywords to optimize for is thus the first and most crucial step to a  successful SEO campaign. If you fail on this very first step, the road  ahead is very bumpy and most likely you will only waste your time and  money. There are many ways to determine which keywords to optimize for  and usually the final list of them is made after a careful analysis of  what the online population is searching for, which keywords have your  competitors chosen and above all - which are the keywords that you feel  describe your site best.&lt;br /&gt;
&lt;h2&gt;&lt;a href="" name="1. Choosing the Right Keywords to Optimize For|outline"&gt;&lt;/a&gt;    1. Choosing the Right Keywords to Optimize For&lt;/h2&gt;&lt;div style="float: right; margin-right: 1em;"&gt;  &lt;img height="250" src="http://www.webconfs.com/comics/getting-the-right-keyword.jpg" width="300" /&gt; &lt;/div&gt;It seems that the time when you could easily top the results for a    one-word search string is centuries ago. Now, when the Web is so    densely populated with sites, it is next to impossible to achieve    constant top ratings for a one-word search string. Achieving constant    top ratings for two-word or three-word search strings is a more    realistic goal.&lt;br /&gt;
For instance, If you have a site about dogs, do NOT try and optimize for  the keyword "dog" or "dogs". Instead you could try and focus on  keywords like "dog obedience training", "small dog breeds", "homemade  dog food", "dog food recipes" etc. Success for very popular one-two word  keywords is very difficult and often not worth the trouble, it's best  to focus on less competitive highly specific keywords.     &lt;br /&gt;
The first thing you need to do is come up with keywords that describe  the content of your website. Ideally, you know your users well and can  correctly guess what search strings they are likely to use to search for  you. You can also try the &lt;b&gt;Website Keyword Suggestions Tool&lt;/b&gt; below to come up with an initial list of keywords. Run your inital list of keywords by the &lt;a href="https://adwords.google.com/select/KeywordToolExternal" target="_new"&gt;Google keyword Suggestion tool&lt;/a&gt;,  you'll get a related list of keywords, shortlist a couple of keywords  that seem relevent and have a decent global search volume.     &lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-5152960290833947668?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/5152960290833947668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/keywords-most-important-item-in-seo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/5152960290833947668?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/5152960290833947668?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/keywords-most-important-item-in-seo.html' title='Keywords – the Most Important Item in SEO'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0cMQn8zfip7ImA9WhRXFkQ.&quot;'><id>tag:blogger.com,1999:blog-1228369635020812851.post-6808967941366575176</id><published>2011-12-23T19:58:00.001-08:00</published><updated>2011-12-23T19:58:03.186-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-23T19:58:03.186-08:00</app:edited><title>Introduction – What Is SEO</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;  &lt;img height="258" src="http://www.webconfs.com/comics/comic20.gif" width="851" /&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;div style="float: left; margin-right: 1em;"&gt;  &lt;ins style="border: none; display: inline-table; height: 250px; margin: 0; padding: 0; position: relative; visibility: visible; width: 300px;"&gt;&lt;ins id="aswift_2_anchor" style="border: none; display: block; height: 250px; margin: 0; padding: 0; position: relative; visibility: visible; width: 300px;"&gt;&lt;/ins&gt;&lt;/ins&gt; &lt;/div&gt;Whenever you enter a query in a search engine and hit 'enter' you get a list of web results      that contain that query term.  Users normally tend to visit websites that are at the top of this list as     they perceive those to be more relevant to the query. If you have ever wondered why some of these     websites rank better than the others then you must know that it is because of a powerful web marketing     technique called &lt;b&gt;Search Engine Optimization (SEO)&lt;/b&gt;.&lt;br /&gt;
SEO is a technique which helps search engines find and rank your site higher than the millions of other sites in     response to a search query. SEO thus helps you get traffic from search engines.                         &lt;br /&gt;
This SEO tutorial covers all the necessary information you need to know about Search Engine Optimization     - what is it, how  does it work and differences in the ranking criteria of major search engines.&lt;br /&gt;
&lt;h2&gt;&lt;a href="" name="1. How Search Engines Work|outline"&gt;&lt;/a&gt;1. How Search                         Engines Work&lt;/h2&gt;&lt;div style="float: right; margin-right: 1em;"&gt; &lt;img height="250" src="http://www.webconfs.com/comics/flash-website-cartoon.jpg" width="300" /&gt; &lt;/div&gt;The first basic truth you need to know to learn SEO is that search                         engines are not humans. While this might be obvious for everybody,                         the differences between how humans and search engines view web pages                         aren't. Unlike humans, search engines are text-driven. Although                         technology advances rapidly, search engines are far from intelligent                         creatures that can feel the beauty of a cool design or enjoy the                         sounds and movement in movies. Instead, search engines crawl the Web,                         looking at particular site items (mainly text) to get an idea what a                         site is about. This brief explanation is not the most precise because                         as we will see next, search engines perform several activities in                         order to deliver search results – &lt;i&gt;crawling&lt;/i&gt;, &lt;i&gt;indexing&lt;/i&gt;,                         &lt;i&gt;processing&lt;/i&gt;, &lt;i&gt;calculating relevancy&lt;/i&gt;, and &lt;i&gt;retrieving&lt;/i&gt;.                         &lt;br /&gt;
First, search engines &lt;b&gt;crawl&lt;/b&gt; the Web to see what is there.                         This task is performed by a piece of software, called a &lt;i&gt;crawler&lt;/i&gt;                         or a &lt;i&gt;spider&lt;/i&gt; (or Googlebot, as is the case with Google).                         Spiders follow links from one page to another and index everything                         they find on their way. Having in mind the number of pages on the Web                         (over 20 billion), it is impossible for a spider to visit a site                         daily just to see if a new page has appeared or if an existing page                         has been modified, sometimes crawlers may not end up visiting your site for a                         month or two.                         &lt;br /&gt;
What you can do is to check what a crawler sees from your site. As                         already mentioned, crawlers are not humans and they do not see                         images, Flash movies, JavaScript, frames, password-protected pages                         and directories, so if you have tons of these on your site, you'd                         better run the &lt;b&gt;Spider Simulator&lt;/b&gt; below to see if these goodies are viewable by the spider. If                         they are not viewable, they will not be spidered, not indexed, not                         processed, etc. - in a word they will be non-existent for search                         engines.                         &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1228369635020812851-6808967941366575176?l=tutorial-applikasi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tutorial-applikasi.blogspot.com/feeds/6808967941366575176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/introduction-what-is-seo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/6808967941366575176?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1228369635020812851/posts/default/6808967941366575176?v=2'/><link rel='alternate' type='text/html' href='http://tutorial-applikasi.blogspot.com/2011/12/introduction-what-is-seo.html' title='Introduction – What Is SEO'/><author><name>selywily</name><uri>http://www.blogger.com/profile/08305263778865304015</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>