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

<channel>
	<title>Visual Basic - blog for programmers</title>
	<atom:link href="http://visualbasicdotnet.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://visualbasicdotnet.wordpress.com</link>
	<description>Visual Basic blog for programmers</description>
	<lastBuildDate>Sun, 04 Oct 2009 02:37:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='visualbasicdotnet.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1228d8b15437377129a8dd415c8e1190?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Visual Basic - blog for programmers</title>
		<link>http://visualbasicdotnet.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://visualbasicdotnet.wordpress.com/osd.xml" title="Visual Basic &#8211; blog for programmers" />
		<item>
		<title>New set of articles on ERP</title>
		<link>http://visualbasicdotnet.wordpress.com/2009/10/04/new-set-of-articles-on-erp/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2009/10/04/new-set-of-articles-on-erp/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 02:37:15 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=33</guid>
		<description><![CDATA[New set of articles posted on :
ERP Articles
Click above link for all articles on ERP
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=33&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>New set of articles posted on :</p>
<p><a href="http://www.vkinfotek.com/erp-articles.html">ERP Articles</a></p>
<p>Click above link for all articles on ERP</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=33&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2009/10/04/new-set-of-articles-on-erp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
		<item>
		<title>Book Review #2 &#8211; Beginning Visual Basic 2005</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/06/09/book-review-2-beginning-visual-basic-2005/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/06/09/book-review-2-beginning-visual-basic-2005/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 14:57:02 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[visual basic]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=32</guid>
		<description><![CDATA[Authored by Thearon Willis and Bryan Newsome, and published by Wiley Dreamtech, this book is ideal for beginners.
This book is for those who want to learn application development, and covers fundamentals of Visual Basic language. A brief coverage of .Net is also included. Project creation and adding forms and writing code to handle common programming [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=32&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Authored by Thearon Willis and Bryan Newsome, and published by Wiley Dreamtech, this book is ideal for beginners.</p>
<p>This book is for those who want to learn application development, and covers fundamentals of Visual Basic language. A brief coverage of .Net is also included. Project creation and adding forms and writing code to handle common programming routines are taught. Note that the datatbase used is SQL Server 2005. However, the explanation is not based on a particular domain so falls short covering end to end knowledge badly required by young programmers.</p>
<p>Brief coverage of web services, mobile devices and ado .net is included. XML is covered very briefly.</p>
<p>The book fairly detailed in its explanation and coverage is exhaustive in many chapters.</p>
<p>All in all a good book for one who is looking to get a detailed exposure to application development.</p>
<p>http://www.wileyindia.com/</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=32&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/06/09/book-review-2-beginning-visual-basic-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
		<item>
		<title>Book review #1: Title: Database programming using vb</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/05/26/book-review-1-title-database-programming-using-vb-2008/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/05/26/book-review-1-title-database-programming-using-vb-2008/#comments</comments>
		<pubDate>Mon, 26 May 2008 03:52:20 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[Book Review #1]]></category>
		<category><![CDATA[visual basic accounting software]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=30</guid>
		<description><![CDATA[Focus: Database programming

Domain: Accounting Software
Tools used: VB 2008, and SQL Server for the windows os.
This book takes you through the steps of developing an accounting software. The first few chapters cover  topics like vb and sql server. Next, the steps for developing an accounting software are outlined.
The steps are fairly detailed and some of them [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=30&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Focus: Database programming<br />
</strong><br />
<strong>Domain: Accounting Software</strong></p>
<p>Tools used: VB 2008, and SQL Server for the windows os.</p>
<p>This book takes you through the steps of developing an accounting software. The first few chapters cover  topics like vb and sql server. Next, the steps for developing an accounting software are outlined.<br />
The steps are fairly detailed and some of them are</p>
<ol>
<li>Developing the Masters</li>
<li>Creating the Project</li>
<li>Writing Standard Modules</li>
<li>Creating the Accounting Database</li>
<li>Exploring the Accounting Database</li>
<li>Populating the Group Table with Chart of Accounts</li>
<li>Designing &amp; Programming the Accounts Form</li>
<li>Programming the Account Form</li>
<li>Writing a Constructor</li>
<li>Programming the Load() event procedure</li>
<li>Saving Account details into the DataSet</li>
<li>Moving to a particular row in the DataSet</li>
<li>Achieving error free/rapid data entry by enable/disable controls</li>
<li>Validating the data entered in the Amount TextBox control</li>
<li>Developing the Transactions</li>
<li>Developing the Tran Class</li>
<li>Designing and Programming the Journal form</li>
</ol>
<p>A separate chapter is dedicated for programming reports which may be useful for crystal reports programmers.</p>
<p>This book will be interesting to programmers who are starting with software development. They can pick a<br />
few tricks quickly and the book seems to be fairly priced. These books may be useful to students who wish to do a project which may of use in their careers. Of particular interest to me was the handling of the layers with a separate layer for business logic, present layer and data layer. Even though it is a difficult concept to grasp at the first read, this concept makes designing of applications cleaner and easier to read. With the advent of web applications, multi-layered applications are in vogue. In fact, most companies are seeing if programmers are aware of this mode of programming while recruiting.</p>
<p>With ERP becoming a major attraction for engineering students, this book can be an inexpensive way for programmers to start development and get a feel of application development.</p>
<p>Being a software programmer myself, I found the book quite useful. Finally, a book you can use. Click on the title for detailed contents of the book.</p>
<p><a href="http://www.vkinfotek.com/dnet.html" target="_blank">Visual Basic programming and accounting software software development</a></p>
<p>PS: If you want me to review your company or a book you have authored or a software just email me &#8212;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=30&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/05/26/book-review-1-title-database-programming-using-vb-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
		<item>
		<title>What you should know to start Developing a Database Software Application using Visual Basic which has to work on a Client Server network</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/05/19/what-you-should-know-to-start-developing-a-database-software-application-which-has-to-work-on-a-client-server-network-using-visual-basic/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/05/19/what-you-should-know-to-start-developing-a-database-software-application-which-has-to-work-on-a-client-server-network-using-visual-basic/#comments</comments>
		<pubDate>Mon, 19 May 2008 10:23:14 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[visual basic]]></category>
		<category><![CDATA[develop a database software using visual basic]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=29</guid>
		<description><![CDATA[
Basics of Visual Basic and SQL Server
Basics of the domain you want to develop the application for.
For example of Accounting domain or Inventory Domain.
Basics of Client / Server Application Development with Visual Basic ( visual basic ) and SQL Server or C# and SQL Server
Knowledge of how to install a Network Operating system.
Knowledge of how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=29&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><ol>
<li>Basics of Visual Basic and SQL Server</li>
<li>Basics of the domain you want to develop the application for.</li>
<li>For example of Accounting domain or Inventory Domain.</li>
<li>Basics of Client / Server Application Development with Visual Basic ( visual basic ) and SQL Server or C# and SQL Server</li>
<li>Knowledge of how to install a Network Operating system.</li>
<li>Knowledge of how to install a SQL Server Installation on a Client / Server Network.</li>
<li>Knowledge of installing and setting up an Active Directory Services on a Client / Server Network</li>
<li>Basics  of concept of Domain Controller in a Windows Network</li>
<li>Basics of securing Databases in Sql Server</li>
<li>Knowledge of setup and use windows authentication in Sql Server.</li>
<li>Basics of setting up and using Windows Authentication in Sql Server.</li>
<li>Knowledge of  setting up and using SQL Server Authentication.</li>
<li>Knowledge of  creating Logins in Sql Server.</li>
<li>Knowledge of  database Roles in Sql Server.</li>
<li>Knowledge of  server Roles in Sql Server.</li>
<li>Knowledge of  enterprise Manager of Sql Server.</li>
<li>Knowledge of  how to use the Query Analyzer of Sql Server.</li>
<li>Knowledge of  creating a Database.</li>
<li>Knowledge of  creating a Table using SQL Script.</li>
<li>Knowledge of  create Primary Keys and Foreign Keys.</li>
<li>Knowledge of  create Indexes, Clustered and Non Clustered Indexes.</li>
<li>Knowledge of  how to establish Connection from Visual Basic with SQL Server over a Network.</li>
<li>Knowledge of  creating a Connection Object.</li>
<li>Knowledge of  creating a Command Object, its Properties and Methods.</li>
<li>Knowledge of  creating a Recordset Object in a Visual Basic ( visual basic ) application.</li>
<li>Knowledge of  accessing SQL Server Database using ADO.</li>
<li>Knowledge of  retreiving Data using visual absic from SQL Server database over a client server Network.</li>
<li>Knowledge of  create Multiple Command Objects using a Single Connection.</li>
<li>Knowledge of  specify a OLEDB data provider in Visual Basic ( visual basic ) for a client server application.</li>
<li>Knowledge of  pass Connection Information to SQL Server over a network using Visual Basic (VB).</li>
<li>Knowledge of  insert a New Record in SQL server using Visual Basic ( VB ).</li>
<li>Knowledge of  update and Delete a record using the Execute Method in Visual Basic</li>
<li><a href="http://visualbasicdotnet.wordpress.com/wp-admin/post.php?action=edit&amp;post=22" target="_blank">Knowledge of  execute a Stored Procedure using a Command Object.</a></li>
<li>Knowledge of  create a Input Parameter and a Output Parameter.</li>
<li>Knowledge of  create Dynamic Recordsets, Keyset Recordsets, Static Recordsets, Forward Only Recordsets.</li>
<li>Knowledge of  create Client Side Only Recordsets.</li>
<li>Knowledge of  assign a lock for Client Side Recordsets.</li>
<li>Knowledge of  navigate and Bind Controls to a Recordset.</li>
<li>Knowledge of  retrieve Fields of Recordsets.</li>
<li>Knowledge of  manually Populate Controls using Visual Basic  programming.</li>
<li>Knowledge of  add a new Record, modify and delete a Record using Visual Basic</li>
</ol>
<p>For More information on visit :</p>
<p><a href="http://www.vkinfotek.com/" target="_self">Develop a An Accounting Software and a Database Application using Visual Basic and SQL Server</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=29&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/05/19/what-you-should-know-to-start-developing-a-database-software-application-which-has-to-work-on-a-client-server-network-using-visual-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
		<item>
		<title>Navigating a Recordset and Binding controls to a recordset using Visual Basic</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/05/14/navigating-a-recordset-and-binding-controls-to-a-recordset-using-visual-basic/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/05/14/navigating-a-recordset-and-binding-controls-to-a-recordset-using-visual-basic/#comments</comments>
		<pubDate>Wed, 14 May 2008 04:13:21 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[visual basic]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=27</guid>
		<description><![CDATA[The Recordset object enables your application to access data returned from an SQL query or stored procedure. Using the Recordset object, you can navigate through the records that have been returned. A Recordset has a conceptual pointer, using which Visual Basic points at any one particular record, which is the current record.
A Recordset object has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=27&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The Recordset object enables your application to access data returned from an SQL query or stored procedure. Using the Recordset object, you can navigate through the records that have been returned. A Recordset has a conceptual pointer, using which Visual Basic points at any one particular record, which is the current record.</p>
<p>A Recordset object has certain properties and methods, which can be used to navigate and manage the recordset.  The properties of a Recordset object are listed below:</p>
<p><strong>Properties of Recordset:</strong></p>
<p>BOF: Indicates if the pointer has moved before the first record.</p>
<p>EOF: Indicates if the pointer has moved past the last record.</p>
<p>Abosoluteposition: Sets or returns the obsolute position of the record.</p>
<p><strong>Methods of Recordset object:</strong></p>
<p>MoveFirst: Moves to the first record</p>
<p>MoveLast: Moves to the last record,</p>
<p>MoveNext: Moves to the next  record</p>
<p style="text-align:center;"><a href="http://visualbasicdotnet.files.wordpress.com/2008/05/picvb1.jpg"><img class="alignnone size-medium wp-image-28 aligncenter" src="http://visualbasicdotnet.files.wordpress.com/2008/05/picvb1.jpg?w=300&#038;h=172" alt="" width="300" height="172" /></a></p>
<p>AddNew: Appends a blank record to the recordset</p>
<p>Update: Saves the modification permanently on the recordset object.</p>
<p>Create the form frmAccountDetails and place the controls as shown below.</p>
<p><strong>User Interface, Name, Caption</strong></p>
<p>Form, frmAccDetails, Account Details<br />
Label, lblcode, Code<br />
Label, lblname, Name<br />
Textbox, mcode<br />
Textbox, mname<br />
Command Button, cmdfirst, First<br />
Command Button, cmdprev, Previous<br />
Command Button, cmdnext, Next<br />
Command Button, cmdlast, Last</p>
<p>Declare the necessary objects as given in the following code of the General section</p>
<p>Option Explicit<br />
Dim CN As Connection<br />
Dim rs As Recordset</p>
<p>In the Form_Load event, initialize the Connection object and the Recordset object. Set the Provider  and the ConnectionString properties of the Connection object to required values as done earlier. Set the CursorLocation, LockType, and CursorType properties of the Recordset object to adUseServer, adLockOptimistic, and adOpenDynamic respectively. Now call the Open method of the Recordset object by passing the SQL statement and the name of the Connection object as arguments. Next you need to bind the Recordset object with Text property of the text boxes by initializing the DataSource and the DataField properties. The code for the Form_Load event is given below.</p>
<p>Private Sub Form_Load()<br />
Set CN = New Connection<br />
Set rs = New Recordset<br />
rs.CursorType = adOpenDynamic<br />
rs.CursorLocation = adUseServer<br />
rs.LockType = adLockOptimistic</p>
<p>With CN<br />
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”<br />
.Provider = “SQLOLEDB”<br />
.Open<br />
End With<br />
rs.Open “SELECT * FROM AccountsTable”, CN</p>
<p>Set mcode.DataSource = rs<br />
Set mname.DataSource = rs</p>
<p>mcode.DataField = “AccountCode”<br />
mname.DataField = “AccountName”</p>
<p>End Sub</p>
<p>There are two ways to present data to the user. You can manually place the contents of the current record’s fields in appropriate controls, such as a text box, or you can bind the controls to the Recordset object.</p>
<p>Referencing Fields in a Recordset</p>
<p>In order to show a record’s value to the user,  you must reference the fields of the recordset. The most efficient technique is to reference the field name directly.  You can use the Fields collection, which is a  more explicit code. But it is less efficient. The following two examples give the most efficient code and lesser efficient code.</p>
<p>Most efficient</p>
<p>mcode.text=rs!AccountCode<br />
mname.text=rs!AccountName</p>
<p>Explicit, but less efficient</p>
<p>mcode.text=rs  Fields(“AccountCode”).value<br />
mname.text=rs Fields(“AccountName”).value</p>
<p>Manually Populating Controls</p>
<p>After a recordset has been created, you can manually reference fields of the recordset in order to present its values to the user. For example, if the Visual Basic form you are using has two text boxes, one to display the account’s code and a second to display the account’s name, you can manually populate the text boxes. This process must occur each time the user navigates to a new record.</p>
<p>Create a procedure FillControls and place the code as given below.</p>
<p>Sub FillControls()<br />
mcode.text=rs!AccountCode<br />
mname.text=rs!AccountName<br />
End Sub</p>
<p>Binding controls to a Recordset</p>
<p>Recent addition to Visual Basic is the ability to bind controls to objects. This is similar to the technique that you use to bind controls to an ActiveX Data control using the Recordset object. You can bind any data-aware control to any field in a recordset. As the user navigates from record to record, the text box automatically shows the record’s values.</p>
<p>Set mcode.DataSource = rs<br />
Set mname.DataSource = rs</p>
<p>mcode.DataField = “AccountCode”<br />
mname.DataField = “AccountName”</p>
<p>Note:    Use the binding technique as an alternative to writing a general procedure that manually                     populates controls on a form.</p>
<p>Assign the following code to the Click event of the command button, cmdFirst.</p>
<p>Private Sub CmdFirst_Click()<br />
rs.MoveFirst<br />
End Sub</p>
<p>Assign the following code to the Click event of the command button, cmdLast</p>
<p>Private Sub CmdLast_Click()<br />
rs.MoveLast<br />
End Sub</p>
<p>Write the following code in the Click event of the command button, cmdNext. The MoveNext method of the Recordset object moves the record pointer to the next record, that is, it makes the next record as the current  record. This might cause a problem if the current record is the last record. In that case, the record pointer points beyond the last record. When the record pointer points beyond the last record, then the EOF property of the Recordset object is automatically set to True. To avoid such a situation, just after using the MoveNext method, you should check the value of the EOF property of the Recordset object. If the EOF contains TRUE, then the record pointer should be set to the last record by executing the MoveLast method of the Recordset object as shown below.</p>
<p>Private Sub CmdNext_Click()<br />
rs.MoveNext<br />
‘Check to see if tried to move beyond the last record<br />
If rs.EOF = True Then<br />
‘Moved beyond the last record<br />
‘Set the user back to the last<br />
rs.MoveLast<br />
End If<br />
End Sub</p>
<p>Write the following code in the Click event of the command button, cmdPrev</p>
<p>The MovePrevious method of the Recordset object moves the record pointer to the previous record, that is, it makes the previous record as the current record. This might cause a problem if the current record is the first record. In such a case, the record pointer points before the first record.</p>
<p>When the record pointer points before the first record, then the BOF property of the Recordset object is automatically set to True. To avoid such a situation, just after using the MovePrevious method, you should check the value of the BOF property of the Recordset object. If BOF returns  True, then the record pointer should be set to the first record by executing the MoveFirst method of the Recordset object as shown below.</p>
<p>Private Sub CmdPrev_Click()<br />
rs.MovePrevious<br />
‘Check to see if tried to move prior to the first record<br />
If rs.BOF = True Then<br />
‘Moved prior to the first record<br />
‘Set the user back to the first<br />
rs.MoveFirst<br />
End If<br />
End Sub</p>
<p>To develop your own accounting application using visual basic, incorporating the above techniques like navigating a recordset, binding controls to a recordset, moving the pointers in a recordset, read this book titled : <a href="http://www.vkinfotek.com/vbsqlbook.html" target="_self">develop your own accounting application using visual basic</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=27&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/05/14/navigating-a-recordset-and-binding-controls-to-a-recordset-using-visual-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>

		<media:content url="http://visualbasicdotnet.files.wordpress.com/2008/05/picvb1.jpg?w=300" medium="image" />
	</item>
		<item>
		<title>Creation of RecordSert as a Server-side Recordset and Client-side Recordset in Visual Basic</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/05/13/creation-of-recordsert-as-a-server-side-recordset-and-client-side-recordset-in-visual-basic/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/05/13/creation-of-recordsert-as-a-server-side-recordset-and-client-side-recordset-in-visual-basic/#comments</comments>
		<pubDate>Tue, 13 May 2008 08:18:50 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[visual basic]]></category>
		<category><![CDATA[recordset]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=25</guid>
		<description><![CDATA[The following code is for creating a Server-side Recordset.
Option Explicit
Dim CN As Connection
Dim comobj As Command
Dim rs As Recordset
Private Sub Form_Load()
Set CN = New Connection
Set comobj = New Command
Set rs = New Recordset
rs.CursorType = adOpenStatic
rs.CursorLocation = adUseServer
With CN
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”
.Provider = “SQLOLEDB”
.Open
Option Explicit
Dim CN As Connection
Dim comobj As Command
Dim rs As Recordset
End [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=25&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The following code is for creating a Server-side Recordset.</p>
<p>Option Explicit<br />
Dim CN As Connection<br />
Dim comobj As Command<br />
Dim rs As Recordset</p>
<p>Private Sub Form_Load()<br />
Set CN = New Connection<br />
Set comobj = New Command<br />
Set rs = New Recordset<br />
rs.CursorType = adOpenStatic<br />
rs.CursorLocation = adUseServer</p>
<p>With CN<br />
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”<br />
.Provider = “SQLOLEDB”<br />
.Open</p>
<p>Option Explicit<br />
Dim CN As Connection<br />
Dim comobj As Command<br />
Dim rs As Recordset</p>
<p>End With</p>
<p>With comobj<br />
.ActiveConnection = CN<br />
.CommandText = “SELECT * FROM AccountsTable”<br />
End With<br />
Set rs = comobj.Execute<br />
End Sub</p>
<p>If we want to create the recordset on client side, we can use rs.CursorLocation = adUseClient.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=25&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/05/13/creation-of-recordsert-as-a-server-side-recordset-and-client-side-recordset-in-visual-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
		<item>
		<title>Creation of Recordset in Visual Basic</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/05/13/creation-of-recordset-in-visual-basic/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/05/13/creation-of-recordset-in-visual-basic/#comments</comments>
		<pubDate>Tue, 13 May 2008 08:17:38 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[visual basic]]></category>
		<category><![CDATA[creating recordset]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=24</guid>
		<description><![CDATA[Recordset object is created  in the same way as the Connection object and the Command object.
Type the following code in the frmAccountDetails form:
Private Sub Form_Load()
Set CN = New Connection
Set comobj = New Command
Set rs= new Recordset
With CN
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”
.Provider = “SQLOLEDB”
.Open
End With
With comobj
.ActiveConnection = CN
.CommandText = “SELECT * FROM AccountsTable”
End With
Set rs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=24&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recordset object is created  in the same way as the Connection object and the Command object.<br />
Type the following code in the frmAccountDetails form:</p>
<p>Private Sub Form_Load()<br />
Set CN = New Connection<br />
Set comobj = New Command<br />
Set rs= new Recordset<br />
With CN<br />
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”<br />
.Provider = “SQLOLEDB”<br />
.Open<br />
End With<br />
With comobj<br />
.ActiveConnection = CN<br />
.CommandText = “SELECT * FROM AccountsTable”<br />
End With<br />
Set rs = comobj.Execute<br />
End Sub</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=24&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/05/13/creation-of-recordset-in-visual-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
		<item>
		<title>Types of Recordsets in Visual Basic</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/05/13/types-of-recordsets-in-visual-basic/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/05/13/types-of-recordsets-in-visual-basic/#comments</comments>
		<pubDate>Tue, 13 May 2008 08:15:12 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[visual basic]]></category>
		<category><![CDATA[recordset]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=23</guid>
		<description><![CDATA[A resultset  returned from a database server as a result of the execution of an SQL statement can be stored in a Recordset object for further manipulation. In other words, a Recordset object can manipulate data returned by a provider. All Recordset objects consists of records (rows) and fields (columns).
There are 4 types of  recordsets
Dynamic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=23&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A resultset  returned from a database server as a result of the execution of an SQL statement can be stored in a Recordset object for further manipulation. In other words, a Recordset object can manipulate data returned by a provider. All Recordset objects consists of records (rows) and fields (columns).</p>
<p>There are 4 types of  recordsets</p>
<p><strong>Dynamic recordsets</strong></p>
<p>A dynamic recordset allows viewing  the result of additions, changes and deletion by other users. It allows all types of movements on a Recordset, such as scrolling through the Records in the forward and reverse direction.</p>
<p><strong>Keyset recordsets</strong></p>
<p>The Keyset recordset is same as Dynamic recordset but prevents seeing of changes by the other users.</p>
<p><strong>Static Recordset<br />
</strong><br />
Provides the static copy of a set of records  to find data or generate reports. Allows Scrolling through the recordset. Additions, changes or deletions by other users are not visible.</p>
<p><strong>Forward only Recordset</strong></p>
<p>Behaves  identical  to a static Recordset  and allows forward only scrolling. This improves performance in situations where you need to make a single pass through a recordset. We can create any of the above types of recordsets by setting the required value in the Cursor type property of the recordset object after initializing the recordset object</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=23&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/05/13/types-of-recordsets-in-visual-basic/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
		<item>
		<title>Executing a Stored Procedure  having INPUT and OUTPUT parameter  using a Command object using Visual Basic</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/05/13/executing-a-stored-procedure-having-input-and-output-parameter-using-a-command-object-using-visual-basic/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/05/13/executing-a-stored-procedure-having-input-and-output-parameter-using-a-command-object-using-visual-basic/#comments</comments>
		<pubDate>Tue, 13 May 2008 04:31:02 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[visual basic]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=22</guid>
		<description><![CDATA[Executing a Stored Procedure  having INPUT and OUTPUT parameter  using a Command object
Stored procedures may contain output parameters and return values. For example, the procedure GetAccountName, can return the name of the Account for an Account Code passed as a parameter. First, create the stored procedure and then write code in the frmAccountDetails form.
Create Procedure [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=22&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Executing a Stored Procedure  having INPUT and OUTPUT parameter  using a Command object</p>
<p>Stored procedures may contain output parameters and return values. For example, the procedure GetAccountName, can return the name of the Account for an Account Code passed as a parameter. First, create the stored procedure and then write code in the frmAccountDetails form.</p>
<p>Create Procedure GatAccountName<br />
@AccCode varchar(6),<br />
@AccName varchar(30) OUTPUT<br />
As</p>
<p>SELECT  ,@AccName=AccountName FROM AccountsTable WHERE AccountCode =@AccCode<br />
Go</p>
<p>The following code shows how to retrieve the output parameter from a stored procedure.</p>
<p>Option Explicit<br />
Dim CN As Connection<br />
Dim comobj As Command<br />
Dim prmByAcc As Parameter<br />
Dim strAcc As String</p>
<p>Private Sub Form_Load()<br />
Set CN = New Connection<br />
Set comobj = New Command</p>
<p>With CN<br />
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”<br />
.Provider = “SQLOLEDB”<br />
.Open<br />
End With</p>
<p>With comobj<br />
.ActiveConnection = CN<br />
.CommandText = “GetAccountName”<br />
.CommandType = adCmdStoredProc<br />
End With</p>
<p>strAcc = Trim(InputBox(“Enter Customer Code.:”))<br />
Set prmByAcc = comobj.CreateParameter(“ACode”, adBSTR, adParamInput, 6, strAcc)<br />
comobj.Parameters.Append prmByAcc</p>
<p>Set prmByAcc = comobj.CreateParameter(“AName”, adBSTR, adParamOutput, 30)<br />
comobj.Parameters.Append prmByAcc<br />
comobj.Execute<br />
MsgBox comobj.Parameters(“AName”)<br />
End Sub</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=22&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/05/13/executing-a-stored-procedure-having-input-and-output-parameter-using-a-command-object-using-visual-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
		<item>
		<title>Executing a Stored Procedure  having INPUT parameters  using a Command object in Visual Basic</title>
		<link>http://visualbasicdotnet.wordpress.com/2008/05/13/executing-a-stored-procedure-having-input-parameters-using-a-command-object-in-visual-basic/</link>
		<comments>http://visualbasicdotnet.wordpress.com/2008/05/13/executing-a-stored-procedure-having-input-parameters-using-a-command-object-in-visual-basic/#comments</comments>
		<pubDate>Tue, 13 May 2008 04:27:22 +0000</pubDate>
		<dc:creator>alertbrain</dc:creator>
				<category><![CDATA[visual basic]]></category>
		<category><![CDATA[Command object]]></category>

		<guid isPermaLink="false">http://visualbasicdotnet.wordpress.com/?p=21</guid>
		<description><![CDATA[Executing a Stored Procedure  having INPUT parameters  using a Command object
The stored procedure returns names when we pass the account category. As you can well understand, the below procedure accepts an input parameter. So, in order to execute the stored procedure, you need to create a Parameter object by using the CreateParameter method of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=21&subd=visualbasicdotnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Executing a Stored Procedure  having INPUT parameters  using a Command object</strong></p>
<p>The stored procedure returns names when we pass the account category. As you can well understand, the below procedure accepts an input parameter. So, in order to execute the stored procedure, you need to create a Parameter object by using the CreateParameter method of the Command object. The code for the stored procedure is given below. First, create the stored procedure and then write code in the frmDetails form.</p>
<p>Create Procedure GetAccountByCat<br />
@AccCat varchar(1)<br />
As<br />
SELECT  AccountName FROM AccountsTable WHERE AccountCat =@AccCat<br />
Go</p>
<p>Declaration Section</p>
<p>In this section, create a Command object, comobj, a string strCat, and a Parameter object, prmByCat as shown below.</p>
<p>Option Explicit<br />
Dim CN As Connection<br />
Dim comobj As Command<br />
Dim prmByCat As Parameter<br />
Dim strCat As String</p>
<p>Initialize the CN object and the comobj object. Now initialize the ConnectionString properties of the CN object. We need to use the Open method, as given in the following code.</p>
<p>Private Sub Form_Load()<br />
Set CN = New Connection<br />
Set comobj = New Command<br />
With CN<br />
.ConnectionString = “Integrated Security=SSPI;Initial Catalog=FinAccounting;Data Source=SYS1”<br />
.Provider = “SQLOLEDB”<br />
.Open<br />
End With</p>
<p>Initialize the ActiveConnection, CommandText, and CommandType properties of the comobj object as shown in the following code.</p>
<p>With comobj<br />
.ActiveConnection = CN<br />
.CommandText = “GetAccountByCat”<br />
.CommandType = adCmdStoredProc<br />
End With</p>
<p>The procedure GetAccountByCat accepts an input parameter, which needs to be accepted from the user. So, the next step is accepting it from the user and storing it in the String type variable, strCat.</p>
<p>strCat = Trim(InputBox(“Enter Customer Category.:”))</p>
<p>The next step is to initialize the Parameter object, prmByCat, declared earlier. We need to call the CreateParameter method of the comobj object.</p>
<p>Set parameter=Command.CreateParameter (Name, Type, Direction, Size, Value), Where parameter is the Parameter object returned by the CreateParameter method and Command is the Command object. The code for calling the CreateParameter function is as follows</p>
<p>Set prmByCat = comobj.CreateParameter(“ACat”, adBSTR, adParamInput)</p>
<p>comobj.Parameters.Append prmByCat</p>
<p>The Parameter object has a property called Value. You need to assign the value entered by the user to this Value property. The value entered by the user is stored in the string type variable, strCat.</p>
<p>prmByCat.Value = strCat</p>
<p>The last step is to call the Execute method of the Command object.</p>
<p>comobj.Execute</p>
<p>End Sub</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/visualbasicdotnet.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/visualbasicdotnet.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/visualbasicdotnet.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/visualbasicdotnet.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/visualbasicdotnet.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/visualbasicdotnet.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/visualbasicdotnet.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/visualbasicdotnet.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/visualbasicdotnet.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/visualbasicdotnet.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/visualbasicdotnet.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/visualbasicdotnet.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=visualbasicdotnet.wordpress.com&blog=3270437&post=21&subd=visualbasicdotnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://visualbasicdotnet.wordpress.com/2008/05/13/executing-a-stored-procedure-having-input-parameters-using-a-command-object-in-visual-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da10b095f9a25284d7f108c21d60f905?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alertbrain</media:title>
		</media:content>
	</item>
	</channel>
</rss>