<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - Visual Basic 4 / 5 / 6</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our VB forum is the place for Q&A-style discussions related to legacy versions of VB as well as PowerBuilder. Note that we also have a separate Legacy Languages forum within the Software Development category, a VB.NET forum within the Software Development category, and an ASP.NET forum within the Web Development category.]]></description>
		<language>en-US</language>
		<lastBuildDate>Sat, 07 Nov 2009 22:29:18 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - Visual Basic 4 / 5 / 6</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>get the databse table names</title>
			<link>http://www.daniweb.com/forums/thread236849.html</link>
			<pubDate>Sat, 07 Nov 2009 19:07:42 GMT</pubDate>
			<description>dear all, 
 
what is the sql command for ms access 2007 to get the tables name of the database? and also how to put these names into a list box? 
 
 
thanks in advanced. 
 
 
4ukh</description>
			<content:encoded><![CDATA[<div>dear all,<br />
<br />
what is the sql command for ms access 2007 to get the tables name of the database? and also how to put these names into a list box?<br />
<br />
<br />
thanks in advanced.<br />
<br />
<br />
4ukh</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>4ukh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236849.html</guid>
		</item>
		<item>
			<title>If then Statement in excel using data in 2-3 columns</title>
			<link>http://www.daniweb.com/forums/thread236826.html</link>
			<pubDate>Sat, 07 Nov 2009 17:08:23 GMT</pubDate>
			<description><![CDATA[I am trying to create an If Then statement to use in an excel spreadsheet using data from 2 or 3 columns.  
 Column AB has text.  Column AA has a date in it.   I need the statement to say if column AB says RFEP or TRFE and Column AA is greater than 08/01/07, the true value is "Y" and the false...]]></description>
			<content:encoded><![CDATA[<div>I am trying to create an If Then statement to use in an excel spreadsheet using data from 2 or 3 columns. <br />
 Column AB has text.  Column AA has a date in it.   I need the statement to say if column AB says RFEP or TRFE and Column AA is greater than 08/01/07, the true value is &quot;Y&quot; and the false value is &quot;N&quot;.  <br />
=IF((AA2&gt;08/01/07)+(AB2=&quot;RFEP&quot;),&quot;Yes&quot;,&quot;No&quot;)  This is only picking up the date in AA2.  I tried the &amp; for a connector and got “value” only. <br />
As you can see, I haven't even tried to add the TRFE information.<br />
<br />
I would also like to add column X to the mix.  If column X has a &quot;Y&quot; in it, it would also be included in the true value of &quot;Y&quot;.  However, I would be very happy with just the first two items.<br />
Thank you for the help.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12480&amp;d=1257613226">sample data for formula.txt</a> (33.7 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>brendajean</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236826.html</guid>
		</item>
		<item>
			<title>making objects invisible</title>
			<link>http://www.daniweb.com/forums/thread236807.html</link>
			<pubDate>Sat, 07 Nov 2009 15:34:42 GMT</pubDate>
			<description><![CDATA[Hi, 
 
Let's say I have a form full of objects and want to make all of them (or half of them, whatever) invisible. Is there a short way to do that without a need of setting visible to false individually to each object?]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Let's say I have a form full of objects and want to make all of them (or half of them, whatever) invisible. Is there a short way to do that without a need of setting visible to false individually to each object?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236807.html</guid>
		</item>
		<item>
			<title>Error!!!</title>
			<link>http://www.daniweb.com/forums/thread236735.html</link>
			<pubDate>Sat, 07 Nov 2009 08:49:21 GMT</pubDate>
			<description><![CDATA[My subscription system is now running though with errors here and there.the error that concerns me a lot is a runtime error that says  
 
---Quote--- 
multiple steps generated an error check value status 
---End Quote--- 
  
and points to this code....  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>My subscription system is now running though with errors here and there.the error that concerns me a lot is a runtime error that says <br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  multiple steps generated an error check value status  <hr /> </td> </tr> </table> </div>and points to this code.... <pre style="margin:20px; line-height:13px">r.Fields(&quot;companyphone&quot;) = txtcphone.Text<br />
r.Fields(&quot;companywebsite&quot;) = txtcwebsite.Text</pre>and this code is in my save button. at times the error doesnt show but at times it pops up when a user is testing...<br />
how best can i trap such an error because i know there must be  a way which i dont know.<br />
thank you in advance!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236735.html</guid>
		</item>
		<item>
			<title>Need Some Help :)</title>
			<link>http://www.daniweb.com/forums/thread236600.html</link>
			<pubDate>Fri, 06 Nov 2009 16:18:08 GMT</pubDate>
			<description><![CDATA[okay. i'm an B.S.I.T student and we're going to develop a system. i hope you can suggest a unique system. my professor doesn't like common system: library system, student information system, etc. hope you guys can suggest some. we might use VB6, VB2008 or VB.net. it's up to our prof. thanks in...]]></description>
			<content:encoded><![CDATA[<div>okay. i'm an B.S.I.T student and we're going to develop a system. i hope you can suggest a unique system. my professor doesn't like common system: library system, student information system, etc. hope you guys can suggest some. we might use VB6, VB2008 or VB.net. it's up to our prof. thanks in advance! :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>lein.o16</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236600.html</guid>
		</item>
		<item>
			<title>Avoiding code troubles</title>
			<link>http://www.daniweb.com/forums/thread236398.html</link>
			<pubDate>Thu, 05 Nov 2009 22:32:39 GMT</pubDate>
			<description><![CDATA[Hi again, 
 
I have a huge code written, but I'm not even halfway there. Had to split couple of procedures to make everything work smoothly etc. I was wondering, would it be reasonable to put some of my code into modules, in order to avoid compiling or similar errors in future?]]></description>
			<content:encoded><![CDATA[<div>Hi again,<br />
<br />
I have a huge code written, but I'm not even halfway there. Had to split couple of procedures to make everything work smoothly etc. I was wondering, would it be reasonable to put some of my code into modules, in order to avoid compiling or similar errors in future?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236398.html</guid>
		</item>
		<item>
			<title>simple question (Form1)</title>
			<link>http://www.daniweb.com/forums/thread236365.html</link>
			<pubDate>Thu, 05 Nov 2009 20:15:06 GMT</pubDate>
			<description>Hey, 
 
How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it as well, so how do I avoid that?</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it as well, so how do I avoid that?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236365.html</guid>
		</item>
		<item>
			<title>Printing Array Contents to Label</title>
			<link>http://www.daniweb.com/forums/thread236292.html</link>
			<pubDate>Thu, 05 Nov 2009 14:52:34 GMT</pubDate>
			<description><![CDATA[I have the following code: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>...]]></description>
			<content:encoded><![CDATA[<div>I have the following code:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; For lngPosition = LBound(strNames) To UBound(strNames)<br />
&nbsp; &nbsp; &nbsp; mainForm.NameDisplay.Caption = strNames(lngPosition)<br />
&nbsp; &nbsp; &nbsp; mainForm.StockDisplay.Caption = intLevels(lngPosition)<br />
&nbsp; &nbsp; Next lngPosition</pre><br />
This code, in my opinion, should print everything in array in a label. However, it only prints the last element of the array. Anyone got any ideas on how to fix this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>MichaelSammels</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236292.html</guid>
		</item>
		<item>
			<title>How to run a program in a remote machine</title>
			<link>http://www.daniweb.com/forums/thread236234.html</link>
			<pubDate>Thu, 05 Nov 2009 10:51:46 GMT</pubDate>
			<description>Hi all, 
 
I am new to VB. i want to know how to connect to a remote server and run three batch files with some arguments,  over there. 
E.g. 
machine Ip Address:xxx.xxx.xxx.xxx 
username:test 
password:test 
I have to connect to the machine name and run the batch files. 
 
Please suggest a method.</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I am new to VB. i want to know how to connect to a remote server and run three batch files with some arguments,  over there.<br />
E.g.<br />
machine Ip Address:xxx.xxx.xxx.xxx<br />
username:test<br />
password:test<br />
I have to connect to the machine name and run the batch files.<br />
<br />
Please suggest a method.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>karthiknvs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236234.html</guid>
		</item>
		<item>
			<title>VB6 - Access Database</title>
			<link>http://www.daniweb.com/forums/thread236175.html</link>
			<pubDate>Thu, 05 Nov 2009 07:49:13 GMT</pubDate>
			<description><![CDATA[Hi.... I am a student.  
 
When i tried to connect VB with Access, it is giving me this message "Run-time error 13, Type Mismatch" Below is the code 
 
Dim DBase As Database 
Dim RBase As Recordset 
 
Set DBase = OpenDatabase("DB Name") 
Set RBase = DBase.OpenRecordset("Table name")  
The funniest...]]></description>
			<content:encoded><![CDATA[<div>Hi.... I am a student. <br />
<br />
When i tried to connect VB with Access, it is giving me this message &quot;Run-time error 13, Type Mismatch&quot; Below is the code<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim DBase As Database<br />
Dim RBase As Recordset<br />
<br />
Set DBase = OpenDatabase(&quot;DB Name&quot;)<br />
Set RBase = DBase.OpenRecordset(&quot;Table name&quot;)</pre><br />
The funniest thing is, this same code works on another project on the same computer.<br />
<br />
Somebody help meeeeeeeeeeeee.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Jaisonkv</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236175.html</guid>
		</item>
		<item>
			<title>ListView</title>
			<link>http://www.daniweb.com/forums/thread236160.html</link>
			<pubDate>Thu, 05 Nov 2009 06:43:16 GMT</pubDate>
			<description><![CDATA[Hi guys. I am having a bit of trouble with the listview control at the moment. I am trying to change the position of an item in the listview but I have no idea how to do so. I am also trying to set a command button which can "click" a certain item for the user, ie, the item will get highlighted and...]]></description>
			<content:encoded><![CDATA[<div>Hi guys. I am having a bit of trouble with the listview control at the moment. I am trying to change the position of an item in the listview but I have no idea how to do so. I am also trying to set a command button which can &quot;click&quot; a certain item for the user, ie, the item will get highlighted and selected as if it has been clicked directly by the mouse. At the moment I am only able to set .SelectedItem property to the item I want to &quot;click&quot; and make it visible by using .SelectedItem.EnsureVisible, but I don't know how to highlight it, which means there is no indication on the interface to show the user that the item is selected. Please give me a hand. Thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>spmg_092</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236160.html</guid>
		</item>
		<item>
			<title>Code Snippet can any one tell me how to open image of .CAL extension or .TIFF extension in vb6</title>
			<link>http://www.daniweb.com/code/snippet235934.html</link>
			<pubDate>Wed, 04 Nov 2009 10:41:11 GMT</pubDate>
			<description>Type BITMAPFILEHEADER 
bfType As Integer 
bfsize As Long 
bfReserved1 As Integer 
bfReserved2 As Integer 
bfoffbits As Long 
End Type 
 
 
Type BMPInfoHeader</description>
			<content:encoded><![CDATA[<div>Type BITMAPFILEHEADER<br />
bfType As Integer<br />
bfsize As Long<br />
bfReserved1 As Integer<br />
bfReserved2 As Integer<br />
bfoffbits As Long<br />
End Type<br />
<br />
<br />
Type BMPInfoHeader<br />
biSize As Long<br />
biwidth As Long<br />
biheight As Long<br />
biPlanes As Integer<br />
bibitcount As Integer<br />
biCompression As Long<br />
bisizeimage As Long<br />
biXPelsPerMeter As Long<br />
biYPelsPerMeter As Long<br />
biClrUsed As Long<br />
biClrImportant As Long<br />
End Type</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>srikanth48</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235934.html</guid>
		</item>
		<item>
			<title>vb6 populating with first record information</title>
			<link>http://www.daniweb.com/forums/thread235736.html</link>
			<pubDate>Tue, 03 Nov 2009 19:06:08 GMT</pubDate>
			<description>Read a post that had a similar scenario and wonder how it was solved. 
 
environment VB6, sql server 5.0, windows 2003 server, xp sp2 clients 
 
Randomly getting data populated with first record information. 
 
original post was from looney064  on 6/24/08 
 
Just joined so if this is out of format...</description>
			<content:encoded><![CDATA[<div>Read a post that had a similar scenario and wonder how it was solved.<br />
<br />
environment VB6, sql server 5.0, windows 2003 server, xp sp2 clients<br />
<br />
Randomly getting data populated with first record information.<br />
<br />
original post was from looney064  on 6/24/08<br />
<br />
Just joined so if this is out of format please forgive.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>esspeter</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235736.html</guid>
		</item>
		<item>
			<title>Need an advise friends. . .</title>
			<link>http://www.daniweb.com/forums/thread235661.html</link>
			<pubDate>Tue, 03 Nov 2009 13:18:41 GMT</pubDate>
			<description><![CDATA[Is it possible to make a program using VB where you let people visit a site and get their IP address and use their IP address to click the link which is inside the site they visit? 
 
Ex. 
 
My site location is: http://www.mysite.com 
And this site contain one link name "Click Me" 
If someone visit...]]></description>
			<content:encoded><![CDATA[<div>Is it possible to make a program using VB where you let people visit a site and get their IP address and use their IP address to click the link which is inside the site they visit?<br />
<br />
Ex.<br />
<br />
My site location is: <a rel="nofollow" class="t" href="http://www.mysite.com" target="_blank">http://www.mysite.com</a><br />
And this site contain one link name &quot;Click Me&quot;<br />
If someone visit the <a rel="nofollow" class="t" href="http://www.mysite.com" target="_blank">http://www.mysite.com</a> I will be able to get their IP Address and that IP Address will be use to click the &quot;Click Me&quot; link.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>nagatron</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235661.html</guid>
		</item>
		<item>
			<title>help pls in resizing treeview on run</title>
			<link>http://www.daniweb.com/forums/thread235642.html</link>
			<pubDate>Tue, 03 Nov 2009 11:59:51 GMT</pubDate>
			<description>can anyone help me pls on how to resize treeview while the program is running.. i know how to populate treeview  but when the text is to long not all text will be displayed that is why i want to know if there is way on resizing it while running..</description>
			<content:encoded><![CDATA[<div>can anyone help me pls on how to resize treeview while the program is running.. i know how to populate treeview  but when the text is to long not all text will be displayed that is why i want to know if there is way on resizing it while running..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>xirosen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235642.html</guid>
		</item>
		<item>
			<title>code need</title>
			<link>http://www.daniweb.com/forums/thread235602.html</link>
			<pubDate>Tue, 03 Nov 2009 09:47:24 GMT</pubDate>
			<description><![CDATA[have any code  for all form. I mean, here I write   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code...]]></description>
			<content:encoded><![CDATA[<div>have any code  for all form. I mean, here I write  <pre style="margin:20px; line-height:13px">form1.show<br />
form2.show<br />
form3.show</pre>But I want I write one line. like: &quot;allform.show&quot;. or other what is right.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>abu taher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235602.html</guid>
		</item>
		<item>
			<title>Help reg VSExpress edition in Office programming.</title>
			<link>http://www.daniweb.com/forums/thread235581.html</link>
			<pubDate>Tue, 03 Nov 2009 07:44:39 GMT</pubDate>
			<description><![CDATA[Dear All, 
 
I have installed Visual Studio 2008 Express edition " Free by Microsoft ". 
I have done some of my assignment in vba using excel 2007. i want to learn office programming  
in visual Studio 2008 Express Edition the enhanced features and their advance application in  
office 2007. 
...]]></description>
			<content:encoded><![CDATA[<div>Dear All,<br />
<br />
I have installed Visual Studio 2008 Express edition &quot; Free by Microsoft &quot;.<br />
I have done some of my assignment in vba using excel 2007. i want to learn office programming <br />
in visual Studio 2008 Express Edition the enhanced features and their advance application in <br />
office 2007.<br />
<br />
Please can anybody assist some useful resource or sample application file that helps to understand <br />
me.<br />
<br />
PLease assist ?<br />
<br />
Rgds,<br />
<br />
Aligahk06</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>aligahk06</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235581.html</guid>
		</item>
		<item>
			<title>Code Snippet hdd physial id</title>
			<link>http://www.daniweb.com/code/snippet235571.html</link>
			<pubDate>Tue, 03 Nov 2009 05:58:56 GMT</pubDate>
			<description>i run vb6.0 code in xp for getting hdd physical id and it run ok. but when i run same programme in vista it does not display any hdd physical id. please solve the problem</description>
			<content:encoded><![CDATA[<div>i run vb6.0 code in xp for getting hdd physical id and it run ok. but when i run same programme in vista it does not display any hdd physical id. please solve the problem</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>naveen g</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235571.html</guid>
		</item>
		<item>
			<title>SMS</title>
			<link>http://www.daniweb.com/forums/thread235434.html</link>
			<pubDate>Mon, 02 Nov 2009 18:47:46 GMT</pubDate>
			<description>Hello.....I have problem ......i have to transfer a sms from a mobile to another mobile which is connected to a computer.i have to read the sms directly through  computer without seeing tne mobile which is connected to computer via USB........then i have send a sms from computer to mobile(which is...</description>
			<content:encoded><![CDATA[<div>Hello.....I have problem ......i have to transfer a sms from a mobile to another mobile which is connected to a computer.i have to read the sms directly through  computer without seeing tne mobile which is connected to computer via USB........then i have send a sms from computer to mobile(which is not connected).Is this possible ...??pls  a help me...if u can.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>ronyyy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235434.html</guid>
		</item>
		<item>
			<title>College library system</title>
			<link>http://www.daniweb.com/forums/thread235326.html</link>
			<pubDate>Mon, 02 Nov 2009 11:25:30 GMT</pubDate>
			<description>Dim conn As ADODB.Connection 
Dim rs As ADODB.Recordset 
Dim ans As Integer 
 
 
Private Sub br_Click() 
Form27.Show 
End Sub 
 
Private Sub bsm_Click()</description>
			<content:encoded><![CDATA[<div>Dim conn As ADODB.Connection<br />
Dim rs As ADODB.Recordset<br />
Dim ans As Integer<br />
<br />
<br />
Private Sub br_Click()<br />
Form27.Show<br />
End Sub<br />
<br />
Private Sub bsm_Click()<br />
 Unload Me<br />
    Form3.Show<br />
End Sub<br />
<br />
Private Sub Command1_Click()<br />
If Text1.Text = &quot;&quot; Or Text2.Text = &quot;&quot; Then<br />
MsgBox (&quot;please enter user id and password&quot;)<br />
Text1.Text = &quot;&quot;<br />
Text2.Text = &quot;&quot;<br />
Text1.SetFocus<br />
Else<br />
<br />
<br />
      If Text1 &lt;&gt; &quot;&quot; Or Text2 &lt;&gt; &quot;&quot; Then<br />
               SQL = &quot;select count(*) from login where userid ='&quot; &amp; Text1.Text &amp; &quot;' and password ='&quot; &amp; Text2.Text &amp; &quot;'&quot;<br />
               Set rs = conn.Execute(SQL)<br />
               If rs(0) &lt;&gt; 0 Then<br />
               Frame1.Visible = True<br />
               Text1.Enabled = False<br />
               Text2.Enabled = False<br />
               Command1.Enabled = False<br />
               Command2.Enabled = True<br />
               Text3.SetFocus<br />
               <br />
    Else<br />
    <br />
               SQL = &quot;select count(*) from libralogin where userid ='&quot; &amp; Text1.Text &amp; &quot;' and password ='&quot; &amp; Text2.Text &amp; &quot;'&quot;<br />
               Set rs = conn.Execute(SQL)<br />
               If rs(0) &lt;&gt; 0 Then<br />
               MsgBox &quot;UserName and Password are correct&quot;<br />
               Frame1.Visible = True<br />
               Text1.Enabled = False<br />
               Text2.Enabled = False<br />
               Command1.Enabled = False<br />
               Command2.Enabled = True<br />
               Text3.SetFocus<br />
     Else<br />
               SQL = &quot;select count(*) from stulogin where userid ='&quot; &amp; Text1.Text &amp; &quot;' and password ='&quot; &amp; Text2.Text &amp; &quot;'&quot;<br />
               Set rs = conn.Execute(SQL)<br />
               If rs(0) &lt;&gt; 0 Then<br />
               MsgBox &quot;UserName and Password are correct&quot;<br />
               Frame1.Visible = True<br />
               Text1.Enabled = False<br />
               Text2.Enabled = False<br />
               Command1.Enabled = False<br />
               Command2.Enabled = True<br />
               Text3.SetFocus<br />
    Else<br />
                                            <br />
               MsgBox &quot;UserName and Password are invalid&quot;<br />
               Text1.Text = &quot;&quot;<br />
               Text2.Text = &quot;&quot;<br />
               Text1.SetFocus<br />
               <br />
               <br />
               <br />
               <br />
                End If<br />
                End If<br />
                End If<br />
                End If<br />
                End If<br />
<br />
End Sub<br />
<br />
Private Sub Command10_Click()<br />
Unload Me<br />
<br />
End Sub<br />
<br />
Private Sub Command11_Click()<br />
Text3.Text = &quot;&quot;<br />
Text7.Text = &quot;&quot;<br />
Text8.Text = &quot;&quot;<br />
Text4.Text = &quot;&quot;<br />
Text3.Enabled = True<br />
Command7.Enabled = True<br />
Command3.Enabled = True<br />
Text3.SetFocus<br />
End Sub<br />
<br />
Private Sub Command12_Click()<br />
Text5.Text = &quot;&quot;<br />
End Sub<br />
<br />
Private Sub Command2_Click()<br />
Text1.Text = &quot;&quot;<br />
Text2.Text = &quot;&quot;<br />
          Text1.Enabled = True<br />
          Text2.Enabled = True<br />
Frame1.Visible = False<br />
Command1.Enabled = True<br />
Text1.SetFocus<br />
End Sub<br />
<br />
Private Sub Command3_Click()<br />
If Text4.Text = &quot;borrowed&quot; Then<br />
MsgBox (&quot;select another book. that book is borrowed alredy&quot;)<br />
Else<br />
If Text3.Text = &quot;&quot; And Text7.Text = &quot;&quot; And Text8.Text = &quot;&quot; And Text4.Text = &quot;&quot; Then<br />
MsgBox (&quot;check the availability or if any field is empty &quot;)<br />
Text3.SetFocus<br />
Else<br />
ans = MsgBox(&quot;do you confirm to borrow the book&quot;, vbYesNo, Save)<br />
If ans = vbYes Then<br />
SQL = &quot;insert into borrowandreturn(userid,booktitle,authorname,subjectname,status) values('&quot; &amp; Text1.Text &amp; &quot;','&quot; &amp; (Text3.Text) &amp; &quot;','&quot; &amp; (Text7.Text) &amp; &quot;','&quot; &amp; (Text8.Text) &amp; &quot;','borrowed')&quot;<br />
    Set rs = conn.Execute(SQL)<br />
    <br />
SQL = &quot;update bookinformation set Status= 'borrowed' where BookTitle = '&quot; + Trim(Text3.Text) + &quot;'&quot;<br />
    Set rs = conn.Execute(SQL)<br />
    <br />
    MsgBox (&quot;book borrowed successfully&quot;)<br />
    <br />
 Text3.Enabled = False<br />
Text7.Enabled = False<br />
Text8.Enabled = False<br />
Command7.Enabled = False<br />
Command3.Enabled = False<br />
Command1.Enabled = False<br />
Command2.Enabled = False<br />
Command4.Enabled = False<br />
 Else<br />
<br />
 End If<br />
 End If<br />
 End If<br />
 End Sub<br />
<br />
Private Sub Command4_Click()<br />
If Text4.Text = &quot;available&quot; Then<br />
MsgBox &quot;Cant return Book Which is Available&quot;<br />
Else<br />
If Text4 = &quot;borrowed&quot; Then<br />
SQL = &quot;select count(*) from borrowandreturn where userid ='&quot; &amp; Text1.Text &amp; &quot;' and booktitle ='&quot; &amp; Text3.Text &amp; &quot;'&quot;<br />
       Set rs = conn.Execute(SQL)<br />
        If rs(0) &lt;&gt; 0 Then<br />
<br />
ans = MsgBox(&quot;Do you wish to return the book?&quot;, vbYesNo)<br />
If ans = vbYes Then<br />
SQL = &quot;delete * from borrowandreturn where userid = '&quot; &amp; Text1.Text &amp; &quot;' and BookTitle = '&quot; + Trim(Text3.Text) + &quot;'&quot;<br />
Set rs = conn.Execute(SQL)<br />
SQL = &quot;update bookinformation set Status= 'available' where BookTitle = '&quot; + Trim(Text3.Text) + &quot;' &quot;<br />
Set rs = conn.Execute(SQL)<br />
MsgBox &quot;Book returned&quot;<br />
End If<br />
Text3.Text = &quot;&quot;<br />
Text7.Text = &quot;&quot;<br />
Text8.Text = &quot;&quot;<br />
Text4.Text = &quot;&quot;<br />
Text7.Enabled = False<br />
Text8.Enabled = False<br />
Command4.Enabled = False<br />
Text3.SetFocus<br />
<br />
Else<br />
MsgBox &quot;you are not the one borrowed the book&quot;<br />
End If<br />
End If<br />
End If<br />
<br />
End Sub<br />
<br />
Private Sub Command5_Click()<br />
If Text1.Text &lt;&gt; &quot;&quot; And Text2.Text &lt;&gt; &quot;&quot; And Text5.Text &lt;&gt; &quot;&quot; And Text9.Text &lt;&gt; &quot;&quot; And Text10.Text &lt;&gt; &quot;&quot; And Text6.Text &lt;&gt; &quot;borrowed&quot; Then<br />
ans = MsgBox(&quot;do you confirm to borrow the book&quot;, vbYesNo, Save)<br />
If ans = vbYes Then<br />
SQL = &quot;insert into borrowandreturn(userid,booktitle,authername,subjectname,status) values('&quot; &amp; Text1.Text &amp; &quot;','&quot; &amp; LCase(Text2.Text) &amp; &quot;','&quot; &amp; LCase(Text5.Text) &amp; &quot;','&quot; &amp; LCase(Text9.Text) &amp; &quot;','&quot; &amp; LCase(Text10.Text) &amp; &quot;','&quot; &amp; LCase(Text6.Text) &amp; &quot;')&quot;<br />
    Set rs = conn.Execute(SQL)<br />
    <br />
SQL = &quot;update bookinformation set Status= '&quot; &amp; borrowed &amp; &quot;' where BookTitle = '&quot; + Trim(Text3.Text) + &quot;'&quot;<br />
    Set rs = conn.Execute(SQL)<br />
    <br />
    MsgBox (&quot;book borrowed successfully&quot;)<br />
 Else<br />
 MsgBox (&quot;check the availability or if any field is empty &quot;)<br />
End If<br />
 End If<br />
End Sub<br />
<br />
Private Sub Command6_Click()<br />
ans = MsgBox(&quot;Do you wish to return the book?&quot;, vbYesNo)<br />
    <br />
    If ans = vbYes Then<br />
       SQL = &quot;delete * from borrowandreturn where userid = '&quot; &amp; Text1.Text &amp; &quot;%'&quot;<br />
       Set rs = conn.Execute(SQL)<br />
       'conn.Execute (&quot;delete * from bookinformation where BookCode=&quot; &amp; Text1.Text)<br />
              MsgBox &quot;Book returned&quot;<br />
              End If<br />
Text1.Text = &quot;&quot;<br />
Text2.Text = &quot;&quot;<br />
Text5.Text = &quot;&quot;<br />
Text9.Text = &quot;&quot;<br />
Text10.Text = &quot;&quot;<br />
Text6.Text = &quot;&quot;<br />
End Sub<br />
<br />
Private Sub Command7_Click()<br />
If Text3.Text = &quot;&quot; Then<br />
MsgBox (&quot;please enter book title&quot;)<br />
Text3.SetFocus<br />
Else<br />
SQL = &quot; select * from bookinformation where BookTitle like '&quot; + Trim(Text3.Text) + &quot;'&quot;<br />
Set rs = conn.Execute(SQL)<br />
If rs.EOF() Then<br />
MsgBox (&quot;Book Title not found&quot;)<br />
Text3.Text = &quot;&quot;<br />
Text3.SetFocus<br />
Else<br />
Text7.Text = rs(3)<br />
Text8.Text = rs(7)<br />
Text4.Text = rs(9)<br />
Command4.Enabled = True<br />
Command3.Enabled = True<br />
End If<br />
End If<br />
End Sub<br />
<br />
Private Sub Command8_Click()<br />
If Text5.Text = &quot;&quot; Then<br />
MsgBox (&quot;please enter book title&quot;)<br />
Else<br />
SQL = &quot; select * from bookinformation where BookTitle like '&quot; + Trim(Text5.Text) + &quot;'&quot;<br />
Set rs = conn.Execute(SQL)<br />
If rs.EOF() Then<br />
MsgBox (&quot;Book Title not found&quot;)<br />
Else<br />
Text9.Text = rs(3)<br />
Text10.Text = rs(7)<br />
Text6.Text = rs(9)<br />
<br />
          Text7.Enabled = False<br />
          Text8.Enabled = False<br />
End If<br />
End If<br />
End Sub<br />
<br />
Private Sub Command9_Click()<br />
Text3.Text = &quot;&quot;<br />
Text7.Text = &quot;&quot;<br />
Text8.Text = &quot;&quot;<br />
Text4.Text = &quot;&quot;<br />
Text3.Enabled = True<br />
Command7.Enabled = True<br />
Command3.Enabled = True<br />
Text3.SetFocus<br />
End Sub<br />
<br />
<br />
<br />
Private Sub Form_Load()<br />
<br />
Set conn = New ADODB.Connection<br />
conn.Open &quot;provider=MSDASQL;DSN=bookinformation;uid=;pwd=;&quot;<br />
sql1 = &quot;Select * from bookinformation&quot;<br />
    Set rs = conn.Execute(sql1)<br />
        Do While Not rs.EOF<br />
  rs.MoveNext<br />
  Loop<br />
<br />
Set conn = New ADODB.Connection<br />
conn.Open &quot;provider=MSDASQL;DSN=borrowandreturn;uid=;pwd=;&quot;<br />
sql1 = &quot;Select * from bookinformation&quot;<br />
    Set rs = conn.Execute(sql1)<br />
        Do While Not rs.EOF<br />
  rs.MoveNext<br />
  Loop<br />
<br />
<br />
<br />
Command4.Enabled = False<br />
Command3.Enabled = False<br />
<br />
  Text1.Text = &quot;&quot;<br />
  Text2.Text = &quot;&quot;<br />
  Text7.Enabled = False<br />
  Text8.Enabled = False<br />
Frame1.Visible = False<br />
Text1.Text = &quot;&quot;<br />
<br />
<br />
End Sub<br />
<br />
Private Sub logout_Click()<br />
<br />
  Dim confirm<br />
confirm = MsgBox(&quot;Are you sure you want to Exit and log_out??&quot;, vbYesNo, &quot;BOOK BORROW AND RETURN MENU&quot;)<br />
    If confirm = vbYes Then<br />
    Unload Me<br />
    MDIForm1.Show<br />
End If<br />
<br />
<br />
End Sub<br />
<br />
Private Sub refresh_Click()<br />
Unload Me<br />
Form26.Show<br />
Text1.SetFocus<br />
End Sub</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>sting23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235326.html</guid>
		</item>
		<item>
			<title>Login form + calculator</title>
			<link>http://www.daniweb.com/forums/thread235313.html</link>
			<pubDate>Mon, 02 Nov 2009 10:18:33 GMT</pubDate>
			<description><![CDATA[I've got that. that should be displayed after log on ( it can be rewrite with use IF statement) 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help...]]></description>
			<content:encoded><![CDATA[<div>I've got that. that should be displayed after log on ( it can be rewrite with use IF statement)<br />
 <pre style="margin:20px; line-height:13px">Private Sub cmdLogon_Click()<br />
Dim age As Integer<br />
<br />
age = InputBox(&quot;please enter your age&quot;)<br />
Select Case age<br />
Case Is &gt;= 18<br />
MsgBox &quot;you are&quot; &amp; &quot; &quot; &amp; age &amp; &quot;, let's go to the pub&quot;<br />
Case Is &lt; 18<br />
MsgBox &quot;you are&quot; &amp; &quot; &quot; &amp; age &amp; &quot;, you can't drink!&quot;<br />
Case Is &lt; 17<br />
MsgBox &quot;you are&quot; &amp; &quot; &quot; &amp; age &amp; &quot;, you can't drink!&quot;<br />
End Select<br />
<br />
End Sub</pre><br />
and i have task to do with that.<br />
1. design, write and test program that requires the user to enter a username AND password. On successful login the program should dispal the message 'welcome &lt;username&gt;' Invalid logins will results in the message 'sorry access denied, please check your username and password and try again'<br />
<br />
2. Alter the calculator program so that it displays an error message if the user enters any values below 0 or above 99<br />
<br />
can u help me?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>pytup</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235313.html</guid>
		</item>
		<item>
			<title><![CDATA[=" =" "]]></title>
			<link>http://www.daniweb.com/forums/thread235299.html</link>
			<pubDate>Mon, 02 Nov 2009 09:32:48 GMT</pubDate>
			<description><![CDATA[I need to copy text form a text box 
 
for example: 
 
My text box has 
 
temperature="18.5" 
 
in it and i want to copy the text 18.5 i already have it selected i just need to copy it or put it into a var]]></description>
			<content:encoded><![CDATA[<div>I need to copy text form a text box<br />
<br />
for example:<br />
<br />
My text box has<br />
<br />
temperature=&quot;18.5&quot;<br />
<br />
in it and i want to copy the text 18.5 i already have it selected i just need to copy it or put it into a var</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>drabsch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235299.html</guid>
		</item>
		<item>
			<title>DatePicker Problem</title>
			<link>http://www.daniweb.com/forums/thread235176.html</link>
			<pubDate>Sun, 01 Nov 2009 22:22:01 GMT</pubDate>
			<description>Hello, 
          I have a DatePicker and text box on my Form and When I try to show the choosen date of DatePicker in the TextBox. It Shows the date and time. But I want to show only date. Plz help me. 
 
Code: 
      text1.text=DatePicker1.value</description>
			<content:encoded><![CDATA[<div>Hello,<br />
          I have a DatePicker and text box on my Form and When I try to show the choosen date of DatePicker in the TextBox. It Shows the date and time. But I want to show only date. Plz help me.<br />
<br />
Code:<br />
      text1.text=DatePicker1.value</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>nareshkumar131</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235176.html</guid>
		</item>
		<item>
			<title>Payroll</title>
			<link>http://www.daniweb.com/forums/thread235114.html</link>
			<pubDate>Sun, 01 Nov 2009 15:41:39 GMT</pubDate>
			<description><![CDATA[//program for salary payroll 
#include<iostream.h> 
#include<stdlib.h> 
class employee 
{ 
	char name[50]; 
	int number,worked_hours,PF,HRA,salary,net_salary; 
public: 
	void read(); 
		void calculate();]]></description>
			<content:encoded><![CDATA[<div>//program for salary payroll<br />
#include&lt;iostream.h&gt;<br />
#include&lt;stdlib.h&gt;<br />
class employee<br />
{<br />
	char name[50];<br />
	int number,worked_hours,PF,HRA,salary,net_salary;<br />
public:<br />
	void read();<br />
		void calculate();<br />
		void display();<br />
};<br />
void employee::read()<br />
{<br />
	cout&lt;&lt;&quot;enter the employee details here&quot;;<br />
	cout&lt;&lt;&quot;\n enter the employee name&quot;;<br />
	cin&gt;&gt;name;<br />
	cout&lt;&lt;&quot;\n emter the employee number&quot;;<br />
	cin&gt;&gt;number;<br />
	cout&lt;&lt;&quot;\n enter the employee worked hour&quot;;<br />
	cin&gt;&gt;worked_hours;<br />
	cout&lt;&lt;&quot;\n enter the employee PF&quot;;<br />
	cin&gt;&gt;PF;<br />
	cout&lt;&lt;&quot;\n enter the employee HRA&quot;;<br />
	cin&gt;&gt;HRA;<br />
	<br />
}<br />
void employee::calculate()<br />
{<br />
	salary=worked_hours*100;<br />
	net_salary=salary-PF-HRA;<br />
}<br />
void employee::display()<br />
{<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;name;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;number;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;worked_hours;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;PF;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;HRA;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;salary;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;net_salary&lt;&lt;&quot;\n&quot;;<br />
	system(&quot;pause&quot;);<br />
}<br />
void main()<br />
{<br />
	employee payroll[3];<br />
		int i;<br />
	<br />
	for(i=0;i&lt;3;i++)<br />
	{<br />
		payroll[i].read();<br />
		payroll[i].calculate();<br />
	}<br />
	cout&lt;&lt;&quot;\n____________________________________________________________&quot;;<br />
	cout&lt;&lt;&quot;\n\n\t\t\tSALARY DETAILS&quot;;<br />
	cout&lt;&lt;&quot;\n____________________________________________________________\n&quot;;<br />
	cout&lt;&lt;&quot;\nname\tnumber\tworked hours\tPF\tHRA\tsalary\tnet_salary&quot;;<br />
	cout&lt;&lt;&quot;\n____________________________________________________________&quot;;<br />
	<br />
		for(i=0;i&lt;3;i++)<br />
		{<br />
			payroll[i].display();<br />
			<br />
}<br />
		cout&lt;&lt;&quot;\n\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\n\t&quot;;<br />
}</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>sting23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235114.html</guid>
		</item>
		<item>
			<title>simple inventory system for school clinic</title>
			<link>http://www.daniweb.com/forums/thread235113.html</link>
			<pubDate>Sun, 01 Nov 2009 15:32:28 GMT</pubDate>
			<description>Im trying to make a simple system using VB and Access. 
Does anyone have requirements list for such a system? I have the basic ones but if i can get a few more it wont be too bad. 
Thanks</description>
			<content:encoded><![CDATA[<div>Im trying to make a simple system using VB and Access.<br />
Does anyone have requirements list for such a system? I have the basic ones but if i can get a few more it wont be too bad.<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>sting23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235113.html</guid>
		</item>
		<item>
			<title>Sending data from winform to website ?</title>
			<link>http://www.daniweb.com/forums/thread235035.html</link>
			<pubDate>Sun, 01 Nov 2009 08:32:33 GMT</pubDate>
			<description><![CDATA[Hi, 
 
How do i post data from windows form to a website.  
 
Windows form is VB6 or VB.NET 
Website is PHP site where incoming post data is processed. 
 
Example: Command will send 'Hi' in a variable, PHP site wwill print 'Hi' on the screen. 
 
Thanks]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
How do i post data from windows form to a website. <br />
<br />
Windows form is VB6 or VB.NET<br />
Website is PHP site where incoming post data is processed.<br />
<br />
Example: Command will send 'Hi' in a variable, PHP site wwill print 'Hi' on the screen.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>veledrom</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235035.html</guid>
		</item>
		<item>
			<title>VB6 find and replace</title>
			<link>http://www.daniweb.com/forums/thread234987.html</link>
			<pubDate>Sat, 31 Oct 2009 23:14:48 GMT</pubDate>
			<description><![CDATA[Hello everybody, 
 
I have an issue with a code. I'm don't know how to start this. 
 
Here is my problem: 
Column 2 of my MSFlexgrid  = store number. Ex: 1009,1010 etc. 
 
In column 20 of my MSFlexgrid  = Delivery day. Ex: Sun, Mon, Tue......, 
 
Now if store 8009 have multiple delivery days ex:]]></description>
			<content:encoded><![CDATA[<div>Hello everybody,<br />
<br />
I have an issue with a code. I'm don't know how to start this.<br />
<br />
Here is my problem:<br />
Column 2 of my MSFlexgrid  = store number. Ex: 1009,1010 etc.<br />
<br />
In column 20 of my MSFlexgrid  = Delivery day. Ex: Sun, Mon, Tue......,<br />
<br />
Now if store 8009 have multiple delivery days ex:<br />
 <pre style="margin:20px; line-height:13px">Column 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Culumn 20<br />
1009&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Mon<br />
1009&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fri</pre><br />
The logic will have to be that way:<br />
If the the holiday entered in the Form4.day_ferier (Combo Box) is &quot;Mon&quot;<br />
Then it will calculate how many day it will have until the next delivery.<br />
<br />
In that case,Monday to Friday = 4 days.<br />
<br />
Then it will calculate how many days there was from the previous delivery. Friday to Monday = 3 days.<br />
<br />
So since Monday to Friday is bigger that Friday to monday, then the results will be Monday +1. So Tuesday.<br />
<br />
If the result would of been less, then it would of been Monday - 1. So Sunday.<br />
<br />
If it would of been equal, by default, it would be Monday - 1.<br />
<br />
Would it be easier if I change Sun by &quot;1&quot;, Mon by &quot;2&quot;, Tue by &quot;3&quot; and so on...<br />
<br />
Thank you so much for your help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>wilder1926</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234987.html</guid>
		</item>
		<item>
			<title>combolist data selecte with textbox relation</title>
			<link>http://www.daniweb.com/forums/thread234823.html</link>
			<pubDate>Sat, 31 Oct 2009 05:23:16 GMT</pubDate>
			<description>I have one combo box “cboitemname” and one text box “itemcode” in vb6 form,I have a table “stock” in sql server 2000 database where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should I do this?</description>
			<content:encoded><![CDATA[<div>I have one combo box “cboitemname” and one text box “itemcode” in vb6 form,I have a table “stock” in sql server 2000 database where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should I do this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Salman Attari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234823.html</guid>
		</item>
		<item>
			<title>related Combolist data in  textbox from database</title>
			<link>http://www.daniweb.com/forums/thread234821.html</link>
			<pubDate>Sat, 31 Oct 2009 05:19:19 GMT</pubDate>
			<description>I have one combo box “cboitemname” and one text box “txtitemcode” in vb6 form,I have a table “stock” where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should I do this?</description>
			<content:encoded><![CDATA[<div>I have one combo box “cboitemname” and one text box “txtitemcode” in vb6 form,I have a table “stock” where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should I do this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Salman Attari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234821.html</guid>
		</item>
		<item>
			<title>A little help on a card game is needed</title>
			<link>http://www.daniweb.com/forums/thread234701.html</link>
			<pubDate>Fri, 30 Oct 2009 14:41:05 GMT</pubDate>
			<description><![CDATA[Hi gang,  
I've started making a card game, which seems is going to be quite a challenge for me. To make my question more simple, let's say we have a form with three empty images and three images with cards. How do I put those three card pics randomly into empty ones with just a single click of a...]]></description>
			<content:encoded><![CDATA[<div>Hi gang, <br />
I've started making a card game, which seems is going to be quite a challenge for me. To make my question more simple, let's say we have a form with three empty images and three images with cards. How do I put those three card pics randomly into empty ones with just a single click of a button? I'd appreciate any pointer, that could get me on track...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234701.html</guid>
		</item>
		<item>
			<title>how to connect sql and visual basic</title>
			<link>http://www.daniweb.com/forums/thread234667.html</link>
			<pubDate>Fri, 30 Oct 2009 11:24:25 GMT</pubDate>
			<description><![CDATA[conectivity of sql & visual basic is needed as early as possible  
pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee!]]></description>
			<content:encoded><![CDATA[<div>conectivity of sql &amp; visual basic is needed as early as possible <br />
pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>rakky</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234667.html</guid>
		</item>
		<item>
			<title>Help Pls on how to disable popup menu on right click such as undo, cut, copy etc.</title>
			<link>http://www.daniweb.com/forums/thread234649.html</link>
			<pubDate>Fri, 30 Oct 2009 09:55:13 GMT</pubDate>
			<description>Here my code to display the menu: 
 
Private Sub Text5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) 
If Button = 2 Then 
    PopupMenu t5menu 
End If 
End Sub 
 
But my problem is the default popup menus such as undo, copy, cut etc.  keeps in taking place instead of the...</description>
			<content:encoded><![CDATA[<div>Here my code to display the menu:<br />
<br />
Private Sub Text5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)<br />
If Button = 2 Then<br />
    PopupMenu t5menu<br />
End If<br />
End Sub<br />
<br />
But my problem is the default popup menus such as undo, copy, cut etc.  keeps in taking place instead of the menus i set up..<br />
Help me pls..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>xirosen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234649.html</guid>
		</item>
		<item>
			<title>Subtracting from database</title>
			<link>http://www.daniweb.com/forums/thread234616.html</link>
			<pubDate>Fri, 30 Oct 2009 07:57:02 GMT</pubDate>
			<description><![CDATA[Hello it's me again i'm having problem with the database subtraction for my POS Project im using ado database and i know that you just have to change the value from the selected and voila it would update the database but mine doesnt work: 
 
 
' txtqan is connect to the item database 
txtqan.text =...]]></description>
			<content:encoded><![CDATA[<div>Hello it's me again i'm having problem with the database subtraction for my POS Project im using ado database and i know that you just have to change the value from the selected and voila it would update the database but mine doesnt work:<br />
<br />
<br />
' txtqan is connect to the item database<br />
txtqan.text = Val(txtqan.text) - Val(txtsalesqan.text)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>ivankenny</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234616.html</guid>
		</item>
		<item>
			<title>visual basic ,Chapter 6, Programming Challenge 6: Travel Expenses, Page 408.</title>
			<link>http://www.daniweb.com/forums/thread234591.html</link>
			<pubDate>Fri, 30 Oct 2009 04:39:24 GMT</pubDate>
			<description>visual basic 1 ,Chapter 6, Programming Challenge 6: Travel Expenses, Page 408.</description>
			<content:encoded><![CDATA[<div>visual basic 1 ,Chapter 6, Programming Challenge 6: Travel Expenses, Page 408.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234591.html</guid>
		</item>
		<item>
			<title>Displaying Input from one form onto another</title>
			<link>http://www.daniweb.com/forums/thread234516.html</link>
			<pubDate>Thu, 29 Oct 2009 19:52:20 GMT</pubDate>
			<description><![CDATA[I have created form resembling a standard dialog box where some enters there name into a text box and then hits 'ok' taking them to the main form..On this form I need to get the name that is typed into the text box to be displayed on the main form. 
 
How do I go about doing this? 
 
The standard...]]></description>
			<content:encoded><![CDATA[<div>I have created form resembling a standard dialog box where some enters there name into a text box and then hits 'ok' taking them to the main form..On this form I need to get the name that is typed into the text box to be displayed on the main form.<br />
<br />
How do I go about doing this?<br />
<br />
The standard dialog box form is named frmInput and the text box is named txtName<br />
The label where the Name is be displayed on the main form (frmSquare) is named Label1</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>EntangledDesi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234516.html</guid>
		</item>
		<item>
			<title>Selecting the first and second characters in an excel cell</title>
			<link>http://www.daniweb.com/forums/thread234410.html</link>
			<pubDate>Thu, 29 Oct 2009 11:59:14 GMT</pubDate>
			<description>Hello, 
 
I am having trouble figuring out the correct syntax for a small portion of my code.  I am trying to have my code search through a column and for each entry in that column copy and paste only the rows that have the following characteristics: the first character = 0 and the second character...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am having trouble figuring out the correct syntax for a small portion of my code.  I am trying to have my code search through a column and for each entry in that column copy and paste only the rows that have the following characteristics: the first character = 0 and the second character = the value in cell (1, 9) in the current worksheet.<br />
<br />
Below is the logic I have come up with (don't worry about &quot;y&quot; or &quot;vend&quot;: they have already been declared in previous code):<br />
 <pre style="margin:20px; line-height:13px">For y = 3 To vend + 1<br />
&nbsp; &nbsp;  If &quot;the 1st character&quot; = 0 and &quot;the 2nd character&quot; = Range(&quot;I1&quot;) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Range(&quot;B&quot; &amp; y &amp; &quot;:F&quot; &amp; y).Copy<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Find last row in sheet 'Selected Values'&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Paste in that cell&quot;<br />
&nbsp; &nbsp;  End If<br />
Next y</pre><br />
The only part I need help with is determining the correct syntax for selecting the first and second characters in a cell.  The other stuff in quotes I already know.<br />
<br />
Thanks in advance for your help,<br />
<br />
Jordan</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>JLynn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234410.html</guid>
		</item>
		<item>
			<title>Checking if not a number help</title>
			<link>http://www.daniweb.com/forums/thread234268.html</link>
			<pubDate>Thu, 29 Oct 2009 02:43:48 GMT</pubDate>
			<description><![CDATA[Hi guys i'm working on some code whereby the user inputs a distance and time they took spent running for days 1 to 6 and it works fine however I can't get it to display a message box if the user inputs letters instead of numbers. I've had a go at trying to do it and you can see my attempt in the...]]></description>
			<content:encoded><![CDATA[<div>Hi guys i'm working on some code whereby the user inputs a distance and time they took spent running for days 1 to 6 and it works fine however I can't get it to display a message box if the user inputs letters instead of numbers. I've had a go at trying to do it and you can see my attempt in the code below. Thanks in advance ;)<br />
<br />
[code=vb6]<br />
Sub Main()<br />
 'Declaring variables used in the program<br />
Dim distance As Integer<br />
Dim time, totaldistance, totaltime, average As Single<br />
<br />
'Loop that calls the following functions to display the message box 6 times and change the day<br />
For i = 1 To 6<br />
distance = Val(InputBox(&quot;Enter the km travelled on day&quot; + Str$(i)))<br />
If IsNumeric(distance) = False Then<br />
MsgBox (&quot;please enter a number&quot;)<br />
End If<br />
<br />
time = Val(InputBox(&quot;Enter the minutes taken on day&quot; + Str$(i)))<br />
If IsNumeric(time) = False Then<br />
MsgBox (&quot;please enter a number&quot;)<br />
End If<br />
<br />
totaldistance = totaldistance + dist<br />
totaltime = totaltime + time<br />
Next i<br />
<br />
<br />
'Calculates and displays the total time, distance and kmph<br />
MsgBox (&quot;The total distance travelled over the week =&quot; + Str$(totaldistance) + &quot;kms&quot;)<br />
MsgBox (&quot;The total time taken running over the week =&quot; + Str$(totaltime) + &quot; minutes&quot;)<br />
average = totaldistance / totaltime * 60<br />
MsgBox (&quot;Your average speed is =&quot; + Str$(average) + &quot; kmph&quot;)<br />
End Sub [/vb6]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>icedece</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234268.html</guid>
		</item>
		<item>
			<title>running batch file in vb6</title>
			<link>http://www.daniweb.com/forums/thread234178.html</link>
			<pubDate>Wed, 28 Oct 2009 19:45:15 GMT</pubDate>
			<description>hi all, i am trying to run a batch file in vb6 and failing dreadfully,  
 
can anyone give any pointers as to how this can be acheived,  
 
the batch file is as follows  
 
@echo off 
cd\ 
ipconfig /flushdns 
ipconfig /registerdns</description>
			<content:encoded><![CDATA[<div>hi all, i am trying to run a batch file in vb6 and failing dreadfully, <br />
<br />
can anyone give any pointers as to how this can be acheived, <br />
<br />
the batch file is as follows <br />
<br />
@echo off<br />
cd\<br />
ipconfig /flushdns<br />
ipconfig /registerdns<br />
exit</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>DaveyMoyes</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234178.html</guid>
		</item>
		<item>
			<title>Data grid control</title>
			<link>http://www.daniweb.com/forums/thread234071.html</link>
			<pubDate>Wed, 28 Oct 2009 07:05:48 GMT</pubDate>
			<description>Hi i am working on a sotre inventry project. 
I just want to fill grid from my ms accsess data base but 
i can not understand what i can do 
please help me in deeply 
it is very urgent</description>
			<content:encoded><![CDATA[<div>Hi i am working on a sotre inventry project.<br />
I just want to fill grid from my ms accsess data base but<br />
i can not understand what i can do<br />
please help me in deeply<br />
it is very urgent</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>VINOD_2553</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234071.html</guid>
		</item>
		<item>
			<title>Code Snippet Select Printer From List</title>
			<link>http://www.daniweb.com/code/snippet233936.html</link>
			<pubDate>Tue, 27 Oct 2009 18:09:39 GMT</pubDate>
			<description>Let you choose between all printers available on your pc or network. Download zip and enjoy. Royal free.</description>
			<content:encoded><![CDATA[<div>Let you choose between all printers available on your pc or network. Download zip and enjoy. Royal free.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12324&amp;d=1256666909">Printer Select.zip</a> (4.4 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>AndreRet</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233936.html</guid>
		</item>
		<item>
			<title>Exponent in Textbox or Label</title>
			<link>http://www.daniweb.com/forums/thread233923.html</link>
			<pubDate>Tue, 27 Oct 2009 17:15:17 GMT</pubDate>
			<description>Good day all 
 
Is it possible to type an exponent in a textbox or a label using VB6? I am currenltly using two textboxes, one for the base and the other for the exponent, by using the tabkey to go from textbox 1 to textbox 2. 
thanx. 
N</description>
			<content:encoded><![CDATA[<div>Good day all<br />
<br />
Is it possible to type an exponent in a textbox or a label using VB6? I am currenltly using two textboxes, one for the base and the other for the exponent, by using the tabkey to go from textbox 1 to textbox 2.<br />
thanx.<br />
N</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>adamsn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233923.html</guid>
		</item>
		<item>
			<title>please help ?   how calculate</title>
			<link>http://www.daniweb.com/forums/thread233863.html</link>
			<pubDate>Tue, 27 Oct 2009 13:10:28 GMT</pubDate>
			<description>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233863.html</guid>
		</item>
		<item>
			<title>how to solve this</title>
			<link>http://www.daniweb.com/forums/thread233854.html</link>
			<pubDate>Tue, 27 Oct 2009 12:39:00 GMT</pubDate>
			<description>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233854.html</guid>
		</item>
		<item>
			<title>Try-Catch feature for VB6, VBA, VBScript</title>
			<link>http://www.daniweb.com/forums/thread233842.html</link>
			<pubDate>Tue, 27 Oct 2009 12:06:46 GMT</pubDate>
			<description><![CDATA[Hi Everyone, 
 
This feauture enables to use "Try" exception handling in VB programs like VB.net Try-Catch statement. 
http://sites.google.com/site/truetryforvisualbasic/ 
I think it's a new way of exception handling in VB 4,5,6, VBA and VBScript. 
I'm waiting for opinions.]]></description>
			<content:encoded><![CDATA[<div>Hi Everyone,<br />
<br />
This feauture enables to use &quot;Try&quot; exception handling in VB programs like VB.net Try-Catch statement.<br />
<a rel="nofollow" class="t" href="http://sites.google.com/site/truetryforvisualbasic/" target="_blank">http://sites.google.com/site/truetryforvisualbasic/</a><br />
I think it's a new way of exception handling in VB 4,5,6, VBA and VBScript.<br />
I'm waiting for opinions.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>RobEin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233842.html</guid>
		</item>
		<item>
			<title><![CDATA[Error "Provider not found"]]></title>
			<link>http://www.daniweb.com/forums/thread233769.html</link>
			<pubDate>Tue, 27 Oct 2009 08:09:00 GMT</pubDate>
			<description>Hi, 
 
I have a computer that has Win-2003 and SQL Server 2005 Installed. 
 
I checked my client and server both are giving the response to each other using ping their address. 
 
I created a string as: 
 
----------------------------------------------------</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a computer that has Win-2003 and SQL Server 2005 Installed.<br />
<br />
I checked my client and server both are giving the response to each other using ping their address.<br />
<br />
I created a string as:<br />
<br />
----------------------------------------------------<br />
<br />
Public conn As New ADODB.Connection<br />
<br />
Public rs As New ADODB.Recordset<br />
<br />
Sub main()<br />
<br />
Set conn = New ADODB.Connection<br />
<br />
conn.ConnectionString = &quot;Provider=SQLNCLI;Server=PUNSEZ178073d;Database=test;Uid=sa;Pwd=Infosys123;&quot;<br />
<br />
conn.Open<br />
<br />
conn.close<br />
<br />
end sub<br />
<br />
----------------------------------------------------<br />
<br />
Above string is working fine at Server machine but when i am running the same script on client machine i am getting error &quot;Provider not found&quot;.<br />
<br />
Please help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>r_k46211</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233769.html</guid>
		</item>
		<item>
			<title>need help</title>
			<link>http://www.daniweb.com/forums/thread233757.html</link>
			<pubDate>Tue, 27 Oct 2009 06:53:18 GMT</pubDate>
			<description>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233757.html</guid>
		</item>
		<item>
			<title>visual basic</title>
			<link>http://www.daniweb.com/forums/thread233750.html</link>
			<pubDate>Tue, 27 Oct 2009 06:41:30 GMT</pubDate>
			<description>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233750.html</guid>
		</item>
		<item>
			<title>visual basic 1</title>
			<link>http://www.daniweb.com/forums/thread233748.html</link>
			<pubDate>Tue, 27 Oct 2009 06:31:00 GMT</pubDate>
			<description>9. Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the...</description>
			<content:encoded><![CDATA[<div>9. Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233748.html</guid>
		</item>
		<item>
			<title>help with alignment in list box</title>
			<link>http://www.daniweb.com/forums/thread233721.html</link>
			<pubDate>Tue, 27 Oct 2009 04:51:09 GMT</pubDate>
			<description><![CDATA[Call List3.AddItem(txtname & vbTab & txtamount & vbTab & txtqan & _vbTab & Format$(ans, "Currency"))  
 
 
need help need to align the text the keep displaying like this: 
 
toy car            1             $3.00         $3.00 
card board box1            $0.50         $0.50 
remote control car     ...]]></description>
			<content:encoded><![CDATA[<div>Call List3.AddItem(txtname &amp; vbTab &amp; txtamount &amp; vbTab &amp; txtqan &amp; _vbTab &amp; Format$(ans, &quot;Currency&quot;)) <br />
<br />
<br />
need help need to align the text the keep displaying like this:<br />
<br />
toy car            1             $3.00         $3.00<br />
card board box1            $0.50         $0.50<br />
remote control car        1             $3.00           $3.00<br />
cart 1       1          $1.00           $1.00<br />
<br />
this is just the sample need it to look clean need help please the out put must be:<br />
<br />
toy car                    1            $3.00         $3.00<br />
card board box       1            $0.50         $0.50<br />
remote control car  1            $3.00         $3.00<br />
cart                         1            $1.00         $1.00</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>ivankenny</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233721.html</guid>
		</item>
		<item>
			<title>VB6 Resident monitor</title>
			<link>http://www.daniweb.com/forums/thread233458.html</link>
			<pubDate>Mon, 26 Oct 2009 12:46:26 GMT</pubDate>
			<description>Hi all, 
 
I need a VB6 program which will be kept resident in windows and monitoring the PrintScreen key. Please let me know how can I do this. I appreciate if you can provide any code samples if you have any. 
The idea is that to track the prtSc key and to show another form immediately if a user...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I need a VB6 program which will be kept resident in windows and monitoring the PrintScreen key. Please let me know how can I do this. I appreciate if you can provide any code samples if you have any.<br />
The idea is that to track the prtSc key and to show another form immediately if a user press the prtSc key.<br />
<br />
Thanks...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>jusmas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233458.html</guid>
		</item>
		<item>
			<title>datagrid in vb6 problem</title>
			<link>http://www.daniweb.com/forums/thread233429.html</link>
			<pubDate>Mon, 26 Oct 2009 10:52:33 GMT</pubDate>
			<description><![CDATA[hello,i have a database.mdb and i want all the fields of the database to be showed in the datagrid.i have an adodb connection and i do not want to use a flexgrid.how can i do this?  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>hello,i have a database.mdb and i want all the fields of the database to be showed in the datagrid.i have an adodb connection and i do not want to use a flexgrid.how can i do this? <pre style="margin:20px; line-height:13px">Private Sub Form_Load()<br />
&nbsp; &nbsp; Dim sDate As Date<br />
&nbsp; &nbsp; Dim eDate As Date&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; sDate = #6/15/2009 6:00:00 PM#<br />
&nbsp; &nbsp; eDate = #6/15/2009 8:00:00 PM#&nbsp; <br />
&nbsp; &nbsp; createDummyBase sDate, eDate, 20, &quot;P1--01&quot;&nbsp; &nbsp; &nbsp; <br />
&nbsp; <br />
End Sub</pre>all the code is in the createDummyBase.<br />
the connection,the recordsets and the database are in the createDummyBase.<br />
the datagrid is in the form load. <pre style="margin:20px; line-height:13px">Public Sub createDummyBase(ByVal sDate As Date, ByVal eDate As Date, ByVal period As Integer, ByVal nodeId As String)<br />
&nbsp; &nbsp; Dim cn As adodb.Connection 'opc<br />
&nbsp; &nbsp; Dim rs As adodb.Recordset<br />
&nbsp; &nbsp; Dim sqlstr As String<br />
&nbsp; &nbsp; Dim dbFilename As String<br />
&nbsp; &nbsp; Dim orig_path, new_path As String<br />
&nbsp; &nbsp; Dim RunDate As Date<br />
&nbsp; &nbsp; Dim delDate As Date<br />
&nbsp; &nbsp; Dim DataGrid As DataGrid<br />
&nbsp; &nbsp; Dim rs1 As adodb.Recordset<br />
&nbsp; &nbsp; dbFilename = &quot;Report_&quot; &amp; Format(Now, &quot;MM_YY&quot;) &amp; &quot;.mdb&quot;<br />
&nbsp; &nbsp; If Dir(App.Path &amp; &quot;\data\Report_&quot; &amp; Format(Now, &quot;MM_YY&quot;) &amp; &quot;.mdb&quot;) &lt;&gt; &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp;  Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; orig_path = App.Path &amp; &quot;\data\Report_mm_yy.mdb&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; new_path = App.Path &amp; &quot;\data\Report_&quot; &amp; Format(Now, &quot;MM_YY&quot;) &amp; &quot;.mdb&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; FileCopy orig_path, new_path<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; Set cn = New adodb.Connection<br />
&nbsp; &nbsp; cn.ConnectionString = BuildConnectionString(dbFilename)<br />
&nbsp; &nbsp; Set rs = New adodb.Recordset<br />
&nbsp; &nbsp; cn.Open<br />
&nbsp; &nbsp; rs.LockType = adLockOptimistic<br />
&nbsp; &nbsp; Set rs.ActiveConnection = cn<br />
&nbsp; &nbsp; rs.CursorType = adOpenKeyset<br />
&nbsp; &nbsp; rs.LockType = adLockOptimistic<br />
&nbsp; &nbsp; rs.Open &quot;Report&quot;, cn<br />
&nbsp; &nbsp; RunDate = sDate<br />
&nbsp; &nbsp; Do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs.AddNew<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!RecDate = RunDate<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!nodeId = nodeId<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!BatteryVoltage = findLastValue(RunDate, &quot;BatteryVoltage&quot;, nodeId)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!i1 = findLastValue(RunDate, &quot;I1&quot;, nodeId)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!i2 = findLastValue(RunDate, &quot;I2&quot;, nodeId)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!I3 = findLastValue(RunDate, &quot;I3&quot;, nodeId)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!MotorRun = findLastValue(RunDate, &quot;MotorRun&quot;, nodeId)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!PowerFactor = findLastValue(RunDate, &quot;PowerFactor&quot;, nodeId)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs!WaterLevelOK = findLastValue(RunDate, &quot;WaterLevelOK&quot;, nodeId)<br />
&nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; RunDate = RunDate + TimeSerial(0, period, 0)&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; Loop Until RunDate &gt; eDate + TimeSerial(0, 0, 1) <br />
&nbsp; &nbsp; rs.Update&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; cn.Close<br />
End Sub</pre>the report is the table of the database which has been created.<br />
the fields of the report i want to show them in the datagrid after their creation. any ideas ?please help.. thx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>eppitis1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233429.html</guid>
		</item>
		<item>
			<title>Reading from a database</title>
			<link>http://www.daniweb.com/forums/thread233367.html</link>
			<pubDate>Mon, 26 Oct 2009 06:38:34 GMT</pubDate>
			<description>I have a subscription system that i have developed. the system is supposed to automatically subtract the number of copies given to a client every monthend as per request they made of the copies required upon joining.  my problem is i cant make my code run through my database so that it can subtract...</description>
			<content:encoded><![CDATA[<div>I have a subscription system that i have developed. the system is supposed to automatically subtract the number of copies given to a client every monthend as per request they made of the copies required upon joining.  my problem is i cant make my code run through my database so that it can subtract from every record....instaed it can deal with one record at a time. i cant manually subtract because the records at one time are going to reach thousands. i justa want it to automatically subtract from all fields when a button is clicked.<br />
<br />
i have een trying to use this code but its not working.<br />
<br />
 <pre style="margin:20px; line-height:13px">With rc<br />
.ActiveConnection = deSub.conn<br />
.LockType = adLockOptimistic<br />
.Source = &quot;select * from cooperatesubs&quot;<br />
.Open<br />
End With<br />
z = rc.Fields(&quot;numberofcopies&quot;)<br />
Do Until rc.EOF<br />
rc.AddNew<br />
rc.Fields(&quot;numberofcopies&quot;) = z<br />
rc.Fields(&quot;copiesgiven&quot;) = y<br />
rc.Fields(&quot;copiesremaining&quot;) = z - y<br />
rc.Update<br />
rc.MoveNext<br />
Loop<br />
Exit Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233367.html</guid>
		</item>
		<item>
			<title>run time error 3705</title>
			<link>http://www.daniweb.com/forums/thread233359.html</link>
			<pubDate>Mon, 26 Oct 2009 06:03:13 GMT</pubDate>
			<description><![CDATA[I select a month from a combobox and type the year in maskeditbox then press a button to show the report. 1st the report show. when I select another month to show again the report then show a error msg:   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I select a month from a combobox and type the year in maskeditbox then press a button to show the report. 1st the report show. when I select another month to show again the report then show a error msg:  <pre style="margin:20px; line-height:13px">run-time error 3705<br />
operation is not allowed when the object is open</pre> and then highlight the connection string.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>abu taher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233359.html</guid>
		</item>
		<item>
			<title>viewing database</title>
			<link>http://www.daniweb.com/forums/thread233308.html</link>
			<pubDate>Mon, 26 Oct 2009 03:27:19 GMT</pubDate>
			<description>i cannot run my viewing redord tool bar pls. give me a code for that..tnx</description>
			<content:encoded><![CDATA[<div>i cannot run my viewing redord tool bar pls. give me a code for that..tnx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>fej04cool</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233308.html</guid>
		</item>
		<item>
			<title>Saving Images file to SQL server or MS Access Databases</title>
			<link>http://www.daniweb.com/forums/thread233288.html</link>
			<pubDate>Mon, 26 Oct 2009 01:58:21 GMT</pubDate>
			<description>Hi to all, 
May I ask any help for a code in VB6 in saving images in either SQL server or MS Access databases? Please give me some idea thanks a lot in advance.</description>
			<content:encoded><![CDATA[<div>Hi to all,<br />
May I ask any help for a code in VB6 in saving images in either SQL server or MS Access databases? Please give me some idea thanks a lot in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>jomamik</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233288.html</guid>
		</item>
		<item>
			<title>Sum of the numbers of one textbox</title>
			<link>http://www.daniweb.com/forums/thread233278.html</link>
			<pubDate>Mon, 26 Oct 2009 00:33:13 GMT</pubDate>
			<description>How can I get the sum of the numbers of only one textbox? 
For example  text1.text= 1367 
How to get the sum of this 4 digit number?  
 
I appreciate your assistance in advance. 
Lida</description>
			<content:encoded><![CDATA[<div>How can I get the sum of the numbers of only one textbox?<br />
For example  text1.text= 1367<br />
How to get the sum of this 4 digit number? <br />
<br />
I appreciate your assistance in advance.<br />
Lida</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Lida_pink</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233278.html</guid>
		</item>
		<item>
			<title><![CDATA[Comparing first & last letter of a string]]></title>
			<link>http://www.daniweb.com/forums/thread233244.html</link>
			<pubDate>Sun, 25 Oct 2009 21:26:04 GMT</pubDate>
			<description>How can I check whether the first and last letter of a string are same or not? And if yes, a message should be shown using MsgBox. 
 
Thanks in advance, 
Lida</description>
			<content:encoded><![CDATA[<div>How can I check whether the first and last letter of a string are same or not? And if yes, a message should be shown using MsgBox.<br />
<br />
Thanks in advance,<br />
Lida</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Lida_pink</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233244.html</guid>
		</item>
		<item>
			<title>this is not working</title>
			<link>http://www.daniweb.com/forums/thread233117.html</link>
			<pubDate>Sun, 25 Oct 2009 08:28:46 GMT</pubDate>
			<description><![CDATA[Set RS = DB.OpenRecordset("Select A8,A9 from A_A WHERE A3='" & Trim(RSB.Fields(0)) & "' AND A1='" & Month("01") & "' ORDER BY A1")]]></description>
			<content:encoded><![CDATA[<div>Set RS = DB.OpenRecordset(&quot;Select A8,A9 from A_A WHERE A3='&quot; &amp; Trim(RSB.Fields(0)) &amp; &quot;' AND A1='&quot; &amp; Month(&quot;01&quot;) &amp; &quot;' ORDER BY A1&quot;)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>sudhir kannan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233117.html</guid>
		</item>
		<item>
			<title>Visual basic 2008 program</title>
			<link>http://www.daniweb.com/forums/thread233035.html</link>
			<pubDate>Sun, 25 Oct 2009 01:09:31 GMT</pubDate>
			<description>Can someone help me develope this program  
 
Design, document and implement a Visual Basic conversion application that will permit 
the following : 
• Enter a value 
• The user should be able to select one of the following options : 
o Convert from Fahrenheit to Celsius (temperature) 
o Convert...</description>
			<content:encoded><![CDATA[<div>Can someone help me develope this program <br />
<br />
Design, document and implement a Visual Basic conversion application that will permit<br />
the following :<br />
• Enter a value<br />
• The user should be able to select one of the following options :<br />
o Convert from Fahrenheit to Celsius (temperature)<br />
o Convert from Celsius to Fahrenheit (temperature)<br />
o Convert from Pounds to Kilograms (weight)<br />
o Convert from Kilograms to Pounds (weight)<br />
o Convert from Feet to Meters (distance)<br />
o Convert from Meters to Feet (distance)<br />
o Convert from Gallons to Litres (volume)<br />
o Convert from Litres to Gallons (volume)<br />
• The properly formatted result should be displayed to the user<br />
The following information must be handed in :<br />
• A completed Visual Basic project</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Tupp128</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233035.html</guid>
		</item>
		<item>
			<title>Plz, Correct this Code</title>
			<link>http://www.daniweb.com/forums/thread233017.html</link>
			<pubDate>Sat, 24 Oct 2009 21:55:13 GMT</pubDate>
			<description><![CDATA[Plz, Correct my Code: 
RS.Find "'"&Text1.Text=&"'" & " '" & Text2.Text & "'"]]></description>
			<content:encoded><![CDATA[<div>Plz, Correct my Code:<br />
RS.Find &quot;'&quot;&amp;Text1.Text=&amp;&quot;'&quot; &amp; &quot; '&quot; &amp; Text2.Text &amp; &quot;'&quot;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>nareshkumar131</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233017.html</guid>
		</item>
		<item>
			<title>Ur Help Needed</title>
			<link>http://www.daniweb.com/forums/thread232988.html</link>
			<pubDate>Sat, 24 Oct 2009 19:37:46 GMT</pubDate>
			<description>hey all... 
i m in 5th sem engg ....currently i hve undertaken a  project under indian army which is like creating a database software for them.....frontend 
is vb6 and sql....i need ur hlp  in the search and view option..... 
for the search option i need codes to search from the database using...</description>
			<content:encoded><![CDATA[<div>hey all...<br />
i m in 5th sem engg ....currently i hve undertaken a  project under indian army which is like creating a database software for them.....frontend<br />
is vb6 and sql....i need ur hlp  in the search and view option.....<br />
for the search option i need codes to search from the database using attributes like &quot;search by name,search by army no,search by rank...etc&quot;<br />
for view option we need the name and adrress of the ppl should come in printable form....like on sticker paper (like how we put on invitation cards)....with proper spacing n format.......<br />
also there is a display option which shows the database whether the entry has been feeded or not<br />
i hope some1 can help me in this......urgently!:S<br />
my emailid is <a href="mailto:manisha_v6@yahoo.com">manisha_v6@yahoo.com</a>....:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>manisha_v</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232988.html</guid>
		</item>
		<item>
			<title>VB 6 Error 75 Path File Access</title>
			<link>http://www.daniweb.com/forums/thread232944.html</link>
			<pubDate>Sat, 24 Oct 2009 15:23:26 GMT</pubDate>
			<description>The error occured in this program after I changed to option explicit 
and got rid of all the dollar signs and percent signs and switched to 10 or 12 character variables as showed in MSB Exaples!! 
Public Sub CreateDir() 
   Drv = App.Path 
   ChDir Drv 
    Select Case intRegg 
     Case 1  
      ...</description>
			<content:encoded><![CDATA[<div>The error occured in this program after I changed to option explicit<br />
and got rid of all the dollar signs and percent signs and switched to 10 or 12 character variables as showed in MSB Exaples!!<br />
Public Sub CreateDir()<br />
   Drv = App.Path<br />
   ChDir Drv<br />
    Select Case intRegg<br />
     Case 1 <br />
         Message box Placed Here showed the correct Path was      Chosen so why did I get this stupid error?<br />
       Flow = Drv + &quot;\CHXPLUS1&quot;<br />
       MkDir Flow<br />
     Case 2<br />
       Flow = Drv + &quot;\CHXPLUS2\&quot;<br />
       MkDir Flow<br />
     Case 3<br />
       Flow = Drv + &quot;\CHXPLUS3\&quot;<br />
       MkDir Flow<br />
     Case 4<br />
       Flow = Drv + &quot;\CHXPLUS4\&quot;<br />
       MkDir Flow<br />
     Case 5<br />
       Flow = Drv + &quot;\CHXPLUS5\&quot;<br />
       MkDir Flow<br />
     Case 6<br />
       Flow = Drv + &quot;\CHXPLUS6\&quot;<br />
       MkDir Flow<br />
     Case Else<br />
   End Select<br />
  WriteFiles 1, 1, 0<br />
  Back2_3 4<br />
End Sub</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Zooker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232944.html</guid>
		</item>
		<item>
			<title>VB Password prompt on closing Excel 2007</title>
			<link>http://www.daniweb.com/forums/thread232710.html</link>
			<pubDate>Fri, 23 Oct 2009 20:25:24 GMT</pubDate>
			<description><![CDATA[I have an Add-In for Excel 2007 (can't post the code here unfortunately) and in some instances, when the user makes a certain change within the Add-In then closes Excel 2007, they are prompted to enter the password for the VB code within the Add-In.  The password prompt dialog can be closed by...]]></description>
			<content:encoded><![CDATA[<div>I have an Add-In for Excel 2007 (can't post the code here unfortunately) and in some instances, when the user makes a certain change within the Add-In then closes Excel 2007, they are prompted to enter the password for the VB code within the Add-In.  The password prompt dialog can be closed by killing it in the Task Manager but we'd still like to get to the bottom of what's causing this issue so that we can save our users from the annoyance.  The information I've found online from Microsoft references that Google Desktop or the Google Toolbar may interfere with this but we have tested on several machines with both IE6 and IE7 without anything Google-related and still receive the prompts in Excel.  This ONLY happens when we make the change noted above while in Excel.  Any suggestions are welcome... The writer of the code knew more about this than I do and I'm a total VB beginner so no explanation is too simple.<br />
<br />
Thanks in advance for any and all help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Quath217</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232710.html</guid>
		</item>
		<item>
			<title>change Printer And Fax Default Printer From VB6</title>
			<link>http://www.daniweb.com/forums/thread232581.html</link>
			<pubDate>Fri, 23 Oct 2009 11:38:20 GMT</pubDate>
			<description>Please if any one knows how to change the default printer on control pannel-printer and fax permenantly, means when I go out from My VB6 program the default printer I set still as default one. 
 
Thanks and best regards</description>
			<content:encoded><![CDATA[<div>Please if any one knows how to change the default printer on control pannel-printer and fax permenantly, means when I go out from My VB6 program the default printer I set still as default one.<br />
<br />
Thanks and best regards</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>AhmedAltigani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232581.html</guid>
		</item>
		<item>
			<title>Please help!!</title>
			<link>http://www.daniweb.com/forums/thread232467.html</link>
			<pubDate>Fri, 23 Oct 2009 01:05:56 GMT</pubDate>
			<description>HI All, 
 
I am new to VBA and I got a very simple question: I have a column of data and some of them are useless, I only need the data of cell 1,3,6,9,12 and so on....and the rest of cell need to be deleted and shifted up so that the outlook will look like: data of cell of 1,3,6,9,12 etc... are in...</description>
			<content:encoded><![CDATA[<div>HI All,<br />
<br />
I am new to VBA and I got a very simple question: I have a column of data and some of them are useless, I only need the data of cell 1,3,6,9,12 and so on....and the rest of cell need to be deleted and shifted up so that the outlook will look like: data of cell of 1,3,6,9,12 etc... are in order &gt;&gt;&gt;&gt;1,2,3,4,5 etc....<br />
<br />
Can someone please help, Many Many thanks!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Samuel Yiau</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232467.html</guid>
		</item>
		<item>
			<title>Switching Between Forms</title>
			<link>http://www.daniweb.com/forums/thread232431.html</link>
			<pubDate>Thu, 22 Oct 2009 22:00:12 GMT</pubDate>
			<description><![CDATA[I want tu use more than one form in my project and be able to code a button or something that will do that.  I tried this on Form1 and it worked. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I want tu use more than one form in my project and be able to code a button or something that will do that.  I tried this on Form1 and it worked.<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Goes from this form to form 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; My.Forms.Form2.Show()<br />
&nbsp; &nbsp; End Sub<br />
<br />
End Class</pre><br />
BUT then I tried the following on Form2 to go back to Form1 and it doesn't work... the button does nothing.<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form2<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; My.Forms.Form1.Show() 'Doesn't work<br />
<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
Also, when the user switches to a different form, will the variables assigned on the first form still be assigned on the second form (assuming they're declared as Public in the module?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>OldQBasicer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232431.html</guid>
		</item>
		<item>
			<title>ActiveX EXE Help</title>
			<link>http://www.daniweb.com/forums/thread232333.html</link>
			<pubDate>Thu, 22 Oct 2009 15:38:04 GMT</pubDate>
			<description>VB6 
main app that starts multiple copies of one activex exe. 
using createobject and thread per object. 
need to communicate with the activex exe from the main app to start and to monitor progress.  very low communications rate so communications speed is NOT a problem. 
 
need withevents to Dim...</description>
			<content:encoded><![CDATA[<div>VB6<br />
main app that starts multiple copies of one activex exe.<br />
using createobject and thread per object.<br />
need to communicate with the activex exe from the main app to start and to monitor progress.  very low communications rate so communications speed is NOT a problem.<br />
<br />
need withevents to Dim it.<br />
unfortunately cannot set up an array of objects to make use of variable number of activex exe that start and the convenience of using an index to reference which activex is being accessed either from sub in the activex or calls back.<br />
<br />
how does one do this type of application?<br />
easily set up to create and access multiple activex exe when using withevents?<br />
otherwise there is a sub and incoming event routine for each interface for each activex started.  too much code bloat.<br />
using user types to make the parameter passing more streamlined.<br />
<br />
Coffe example does not support this type of application as far as I can determine.<br />
I see no good examples of robust apps using ActiveX EXEs.<br />
Any help will be appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>BeeS</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232333.html</guid>
		</item>
		<item>
			<title>voice to text commands in vb6</title>
			<link>http://www.daniweb.com/forums/thread232324.html</link>
			<pubDate>Thu, 22 Oct 2009 14:47:57 GMT</pubDate>
			<description><![CDATA[I want to write a program that mainly use voice commands but I don't know how can I get vb6 voice commands. would you help me?]]></description>
			<content:encoded><![CDATA[<div>I want to write a program that mainly use voice commands but I don't know how can I get vb6 voice commands. would you help me?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>tomafik</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232324.html</guid>
		</item>
		<item>
			<title>how to convert Excel file in text file in VB6.</title>
			<link>http://www.daniweb.com/forums/thread232253.html</link>
			<pubDate>Thu, 22 Oct 2009 10:14:19 GMT</pubDate>
			<description>Hi Guys, 
 
Can you help on the abovementioned title of this thread. 
 
Thank you very much.</description>
			<content:encoded><![CDATA[<div>Hi Guys,<br />
<br />
Can you help on the abovementioned title of this thread.<br />
<br />
Thank you very much.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>phpbeginners</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232253.html</guid>
		</item>
		<item>
			<title>What Could be wrong here!!!</title>
			<link>http://www.daniweb.com/forums/thread232246.html</link>
			<pubDate>Thu, 22 Oct 2009 09:51:15 GMT</pubDate>
			<description><![CDATA[i have been using adodc for searching for a client's details using the client number, but it would give me inexpected errors and bomb out of my programme. i have then resorted to searching using sql. the following code gives me this error::: 
 
_no value given for one or more  required parameters_...]]></description>
			<content:encoded><![CDATA[<div>i have been using adodc for searching for a client's details using the client number, but it would give me inexpected errors and bomb out of my programme. i have then resorted to searching using sql. the following code gives me this error:::<br />
<br />
<span style="font-style:italic"><span style="text-decoration:underline">no value given for one or more  required parameters</span></span><br />
<br />
this error is pointed at line 7 in the following code.<br />
<br />
 the code thats producing this error is:::<br />
 <pre style="margin:20px; line-height:13px"> Private Sub cmdcnsearch_Click()<br />
sql = &quot;Select companyname,companysize,country,city from cooperate where CSTR(accnumber)='&quot; &amp; txtcnsearch.Text &amp; &quot;'&quot;<br />
Set conn = New Connection<br />
Set r = New Recordset<br />
conn.Open &quot;PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Subscriptions Project\subscriptions.mdb&quot;<br />
With r<br />
.Open sql, conn, adOpenKeyset, adLockOptimistic, adCmdText<br />
If .EOF Then<br />
MsgBox &quot;Record not found&quot;, vbExclamation<br />
txtcnsearch.SelStart = 0<br />
txtcnsearch.SelLength = Len(txtcnsearch.Text)<br />
txtcnsearch.SetFocus<br />
Exit Sub<br />
'to populate the field<br />
Else<br />
&nbsp;  txtccname = r!CompanyName<br />
&nbsp;  txtcsize.Text = r!companysize<br />
&nbsp;  txtcountry.Text = r!country<br />
&nbsp;  txtcity.Text = r!city<br />
&nbsp; &nbsp; r.Close<br />
&nbsp; &nbsp; <br />
End If<br />
End With<br />
End Sub</pre>can you help me please!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232246.html</guid>
		</item>
		<item>
			<title>How to generate Unpredictable and a non repeatable random number</title>
			<link>http://www.daniweb.com/forums/thread232188.html</link>
			<pubDate>Thu, 22 Oct 2009 06:27:03 GMT</pubDate>
			<description><![CDATA[Hi, 
I want to generate an unpredictable random integer number but i dont know how. Below is my function to generate between (1 to 8)which keeps returning '6' on first run which is predicted and also, i dont want the numbers to repeat itself. 
 
Private Function RandomIt(Hv As long, Lv As long) As...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I want to generate an unpredictable random integer number but i dont know how. Below is my function to generate between (1 to 8)which keeps returning '6' on first run which is predicted and also, i dont want the numbers to repeat itself.<br />
<br />
Private Function RandomIt(Hv As long, Lv As long) As long<br />
       RandomIt = Int((Hv - Lv + 1) * Rnd + Lv)<br />
End Function<br />
<br />
Please can someone help me out as i want to resume my work urgently. <br />
Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>kcasmir</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232188.html</guid>
		</item>
		<item>
			<title>error with package and development</title>
			<link>http://www.daniweb.com/forums/thread232185.html</link>
			<pubDate>Thu, 22 Oct 2009 06:22:12 GMT</pubDate>
			<description><![CDATA[after complete all process when I press finish then show a msg: "unexpected error number 70 has occured: permission dinied." 
what I need to do.]]></description>
			<content:encoded><![CDATA[<div>after complete all process when I press finish then show a msg: &quot;unexpected error number 70 has occured: permission dinied.&quot;<br />
what I need to do.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>abu taher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232185.html</guid>
		</item>
		<item>
			<title>How to open an outlook email template from a link?</title>
			<link>http://www.daniweb.com/forums/thread232127.html</link>
			<pubDate>Thu, 22 Oct 2009 01:57:59 GMT</pubDate>
			<description>Hi all, 
 
I have the following macro to open an email template and edit the recepients. 
So far i could only open the email template from a .oft file stored on my local drive. Could you advise how to open it directly from a web link?  
 
I tried to replace the path (highlighted in Red) to a link...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have the following macro to open an email template and edit the recepients.<br />
So far i could only open the email template from a .oft file stored on my local drive. Could you advise how to open it directly from a web link? <br />
<br />
I tried to replace the path (highlighted in Red) to a link but it did not work out. Appreciate your help!!<br />
<br />
 <pre style="margin:20px; line-height:13px">Sub emailTmp()<br />
On Error Resume Next<br />
Dim template<br />
Dim newItem 'As Mail<br />
Dim Outlook 'As Outlook.Application<br />
Dim aTo<br />
Dim inputSheet1<br />
Dim myRecipient<br />
<br />
Set inputSheet1 = Worksheets(&quot;Sheet1&quot;)<br />
Set inputSheet2 = Worksheets(&quot;Sheet2&quot;)<br />
aTo = inputSheet2.Cells(2, 1)<br />
'Debug.Print aTo<br />
<br />
Set template = inputSheet1.Cells(5, 2)<br />
'Debug.Print template<br />
<br />
Set Outlook = CreateObject(&quot;Outlook.Application&quot;)<br />
Set newItem = Outlook.CreateItemFromTemplate<span style="color:Red">(&quot;H:\apps\xp\Desktop\My Projects\DN.oft&quot;)</span><br />
<br />
Set myRecipient = newItem.Recipients.Add(aTo)<br />
<br />
'Debug.Print newItem.Recipients<br />
newItem.Save<br />
newItem.Display<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  <br />
Set newItem = Nothing<br />
<br />
On Error GoTo 0<br />
<br />
End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>dawn10</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232127.html</guid>
		</item>
		<item>
			<title>help me, learn</title>
			<link>http://www.daniweb.com/forums/thread232086.html</link>
			<pubDate>Wed, 21 Oct 2009 21:24:35 GMT</pubDate>
			<description><![CDATA[hey im a freshmen in hightschool and i need to learn to code, i was hoping some one could tell me the the visuial basic version of this .NET codeing and i know i made a few mestakes 
 
 Dim Name As String 
  Console.WriteLine("your name here" {} ) 
 Dim Name As String 
  Console.Writeline...]]></description>
			<content:encoded><![CDATA[<div>hey im a freshmen in hightschool and i need to learn to code, i was hoping some one could tell me the the <span style="color:Green">visuial basic </span>version of this <span style="color:Red">.NET </span>codeing and i know i made a few mestakes<br />
<br />
 Dim Name As String<br />
  Console.WriteLine(&quot;your name here&quot; {} )<br />
 Dim Name As String<br />
  Console.Writeline (&quot;hello&quot;{})<br />
  Console. Readeline<br />
im sorry i know its basic but give me a break im 14</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>ipodkilla</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232086.html</guid>
		</item>
		<item>
			<title>Runtime error 8020. Error reading comm device</title>
			<link>http://www.daniweb.com/forums/thread231950.html</link>
			<pubDate>Wed, 21 Oct 2009 11:49:49 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I searched for few days, and even if I see that there are people getting this error,  I can't find a solution. 
 
I have an application communicating over the serial port. The application is written in VB6 and 2 PCs, one with XP, the other one with Vista. 
 
If I connect using the native...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I searched for few days, and even if I see that there are people getting this error,  I can't find a solution.<br />
<br />
I have an application communicating over the serial port. The application is written in VB6 and 2 PCs, one with XP, the other one with Vista.<br />
<br />
If I connect using the native serial port I get no error at all.<br />
If I use the USB to serial adapter on XP, again I get no error.<br />
If I use the bluetooth on XP I get error 8020<br />
If I use the USB to serial adapter in Vista I get error 8020<br />
<br />
I use as well a delphi aplication to communicate with the same device. It will work with no problem on both PC, on either connection.<br />
<br />
I hope that I can find a solution to my problem.<br />
<br />
Kind regards,<br />
<br />
Gabsi<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
On XP <br />
data out USB to serial adapter,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>gabsi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231950.html</guid>
		</item>
		<item>
			<title>sorting the combo box containing nudi kannda words</title>
			<link>http://www.daniweb.com/forums/thread231889.html</link>
			<pubDate>Wed, 21 Oct 2009 07:34:11 GMT</pubDate>
			<description>In my combo box  i have kannada words like 
 
karnataka 
kerala 
mandya 
mysore 
kannada 
 
something like this ,</description>
			<content:encoded><![CDATA[<div>In my combo box  i have kannada words like<br />
<br />
karnataka<br />
kerala<br />
mandya<br />
mysore<br />
kannada<br />
<br />
something like this , <br />
 <br />
On key press event of combo box  if ka (kannada alphabet is pressed)<br />
it should list the karnataka or whichever matches the word <br />
how to do this</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231889.html</guid>
		</item>
		<item>
			<title>Help:Cr8.5 dynamic database from VB6</title>
			<link>http://www.daniweb.com/forums/thread231831.html</link>
			<pubDate>Wed, 21 Oct 2009 03:42:31 GMT</pubDate>
			<description>Hi there 
I have an application in VB6 I want to use Crystal report (8.5) for reporting. In my application I have a ability to archive part of my database. Then I want to change my database location based on my database name. In my report I have subreport  then I search about and find something to...</description>
			<content:encoded><![CDATA[<div>Hi there<br />
I have an application in VB6 I want to use Crystal report (8.5) for reporting. In my application I have a ability to archive part of my database. Then I want to change my database location based on my database name. In my report I have subreport  then I search about and find something to loop through all sections of report. The bellow code works fine just for my base database. But when I change database to archive one the report is empty.<br />
The structure of two databases is exactly same then the problem is not there.<br />
But I have to say basic report is based on the basic database then maybe this is the problem that I can't change the database through run time.<br />
Please say me how can I prepare my report in crystal that can show from multiple database names.<br />
Here is code:<br />
 <pre style="margin:20px; line-height:13px">Public CrxApp As CRAXDRT.Application<br />
Public CrxRep As CRAXDRT.Report<br />
Public crxSubreport As CRAXDRT.Report<br />
Public crxSubreportObject As SubreportObject<br />
Public crxDatabase As CRAXDRT.Database<br />
Public crxDatabaseTables As CRAXDRT.DatabaseTables<br />
Public crxDatabaseTable As CRAXDRT.DatabaseTable<br />
Public crxSections As CRAXDRT.Sections<br />
Public crxSection As CRAXDRT.Section<br />
Public CRXReportObject As Object<br />
<br />
Public Sub DataLoc(DataName As String, REP As String)<br />
&nbsp; &nbsp; Dim fi As String<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Set CrxApp = New CRAXDRT.Application<br />
&nbsp; &nbsp; fi = App.Path &amp; &quot;\&quot; &amp; REP &amp; &quot;.rpt&quot;<br />
&nbsp; &nbsp; Set CrxRep = CrxApp.OpenReport(fi)<br />
<br />
&nbsp; &nbsp; Set crxSections = CrxRep.Sections<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; For Each crxSection In crxSections<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each CRXReportObject In crxSection.ReportObjects<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  If CRXReportObject.Kind = crSubreportObject Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Set crxSubreportObject = CRXReportObject<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Set crxSubreport = crxSubreportObject.OpenSubreport<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Set crxDatabase = crxSubreport.Database<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Set crxDatabaseTables = crxDatabase.Tables<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  For Each crxDatabaseTable In crxDatabaseTables<br />
&nbsp; &nbsp; 'If you are using a&nbsp; Native connection to PC database<br />
&nbsp; &nbsp; crxDatabaseTable.Location = App.Path &amp; &quot;\&quot; &amp; DataName &amp; &quot;.mdb&quot;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Set crxSubreport = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; Next<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; 'Set crxDatabase = Nothing<br />
&nbsp; &nbsp; 'Set crxDatabaseTable = Nothing<br />
&nbsp; &nbsp; 'Set crxDatabaseTables = Nothing<br />
&nbsp; &nbsp; 'Set crxSections = Nothing<br />
&nbsp; &nbsp; 'Set crxSection = Nothing<br />
&nbsp; &nbsp; 'Set crxSubreportObject = Nothing<br />
&nbsp;  ' Set crxReport = Nothing<br />
&nbsp;  ' Set crxApplication = Nothing<br />
End Sub</pre>After this code I set my crystal viewer to Crxrep and it shows my report on base database.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Afi83</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231831.html</guid>
		</item>
		<item>
			<title>Declaring Variables with Wider Scope</title>
			<link>http://www.daniweb.com/forums/thread231750.html</link>
			<pubDate>Tue, 20 Oct 2009 19:35:20 GMT</pubDate>
			<description><![CDATA[New to VB and using Visual Studio 2008.  Trying to declare variables and arrays that can be used outside a specific procedure.  I want to make the variable universally available within the program.  I think I know how to do the declaration, I just can't find where in the code window to put it. ...]]></description>
			<content:encoded><![CDATA[<div>New to VB and using Visual Studio 2008.  Trying to declare variables and arrays that can be used outside a specific procedure.  I want to make the variable universally available within the program.  I think I know how to do the declaration, I just can't find where in the code window to put it.  Can't use PUBLIC within a procedure right?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>OldQBasicer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231750.html</guid>
		</item>
		<item>
			<title>Deleting Charts</title>
			<link>http://www.daniweb.com/forums/thread231670.html</link>
			<pubDate>Tue, 20 Oct 2009 14:02:43 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I am having a strange error when I try to delete my old charts in my excel workbook.  Below is the code I am using to try to get the Workbooks property to work: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am having a strange error when I try to delete my old charts in my excel workbook.  Below is the code I am using to try to get the Workbooks property to work:<br />
 <pre style="margin:20px; line-height:13px">Sub Selecting_Charts()<br />
Workbooks(&quot;Op 70.xls&quot;).Activate<br />
Sheets(&quot;Charts&quot;).Select<br />
Workbooks(&quot;Op 70.xls&quot;).Charts.Select&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Error here!&nbsp; &nbsp;  <br />
End Sub</pre><br />
I keep getting the error &quot;Method 'Select' of object 'Sheets' failed&quot; when trying to run the code.  I don't know anything more to try to get my program to select that workbook.  I also tried the 'ThisWorkbook' property but that produced the same error.  <br />
<br />
Please help me on this issue.  I greatly appreciate it. <br />
<br />
Thanks again,<br />
<br />
Jordan</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>JLynn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231670.html</guid>
		</item>
		<item>
			<title>Emailing Requests!!</title>
			<link>http://www.daniweb.com/forums/thread231663.html</link>
			<pubDate>Tue, 20 Oct 2009 13:19:40 GMT</pubDate>
			<description>Hello All. 
 
i have just finished coding a small subscriptions project for a magazine.  
My main challenge now is the package is supposed to send emails to subscribers notifying them if their days are due. email notifications are supposed to be sent to clients telling them of the status of their...</description>
			<content:encoded><![CDATA[<div>Hello All.<br />
<br />
i have just finished coding a small subscriptions project for a magazine. <br />
My main challenge now is the package is supposed to send emails to subscribers notifying them if their days are due. email notifications are supposed to be sent to clients telling them of the status of their subscriptions.<br />
How best can i do this in VB6 and an Access 2007 database.<br />
<br />
Thank You in advance for your assistance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231663.html</guid>
		</item>
		<item>
			<title>label caption</title>
			<link>http://www.daniweb.com/forums/thread231633.html</link>
			<pubDate>Tue, 20 Oct 2009 11:09:07 GMT</pubDate>
			<description><![CDATA[if I write 500 in a textbox then a label.caption show "Profit". If I write -500 the the label.caption show Loss. I write code  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>if I write 500 in a textbox then a label.caption show &quot;Profit&quot;. If I write -500 the the label.caption show Loss. I write code <pre style="margin:20px; line-height:13px">If Format(Text1, &quot;0000000&quot;) Then Label1.Caption = &quot;Profit&quot;</pre> but for -500 what I need to write?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>abu taher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231633.html</guid>
		</item>
		<item>
			<title>Printing in VB. NET</title>
			<link>http://www.daniweb.com/forums/thread231590.html</link>
			<pubDate>Tue, 20 Oct 2009 08:33:28 GMT</pubDate>
			<description><![CDATA[Good day to you all, 
 
I feel very excited being in the midst of gurus and great enthusiasts of programming...  
 
I have a little challenge in completing a program intended to read records from a file <notepad> and place them in an orderly manner on a pdf file <so as to view how it would look...]]></description>
			<content:encoded><![CDATA[<div>Good day to you all,<br />
<br />
I feel very excited being in the midst of gurus and great enthusiasts of programming... <br />
<br />
I have a little challenge in completing a program intended to read records from a file &lt;notepad&gt; and place them in an orderly manner on a pdf file &lt;so as to view how it would look like just before printing in hard copy&gt;.<br />
<br />
My only hitch was &lt;is&gt; in viewing more than a page at a time; thereby having all other records beyond the 14th not viewable. Below is the VB.NET code I used.<br />
<br />
 <pre style="margin:20px; line-height:13px">For rec As Integer = 0 To recordData.Length - 1<br />
<br />
&nbsp;  Dim myRec() As String = Regex.Split(recordData(i + 1), &quot;,&quot;)<br />
<br />
&nbsp; &nbsp; 'Check if next record is the 14th record<br />
&nbsp; &nbsp; &nbsp; &nbsp;  If (i + 1) Mod 14 = 0 Then&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim remaining As Integer = recordCount - (i + 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If remaining \ 14 &lt;&gt; 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  e.HasMorePages = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'indicate that this is the last page to print<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  e.HasMorePages = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; End if<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; firstColumn = (firstColumn + 1) Mod 2&nbsp; ' 2 records per row<br />
&nbsp; &nbsp; &nbsp; &nbsp;  For j As Integer = 0 To myRec.Length - 1<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Draw your strings&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If firstColumn = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Code that prints records on first column<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' is placed here <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Code that prints records on second column<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' is placed here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Next<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  If countRecords Mod 2 = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'code that allows modification of x and y coordinates<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' so as to print on the next row after every two records<br />
&nbsp; &nbsp; &nbsp; &nbsp;  End If</pre><br />
When I use the &quot;<span style="font-weight:bold"><span style="font-style:italic">e.HasMorePages</span></span>&quot; for large records as I've done above, it'd only print the first page and ignore others.<br />
<br />
I'd be grateful if you can show me what I'm doing wrong.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Ednutt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231590.html</guid>
		</item>
		<item>
			<title>VB 6.0 Reports</title>
			<link>http://www.daniweb.com/forums/thread231580.html</link>
			<pubDate>Tue, 20 Oct 2009 06:42:17 GMT</pubDate>
			<description>Hi Guys, 
 
I am stuck i need reports in my VB 6.0 small project (Crate Management System, anyone with good tutorials or ready to help me on this one, i have used ADODC and a Microsoft Access Database.</description>
			<content:encoded><![CDATA[<div>Hi Guys,<br />
<br />
I am stuck i need reports in my VB 6.0 small project (Crate Management System, anyone with good tutorials or ready to help me on this one, i have used ADODC and a Microsoft Access Database.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>kalual</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231580.html</guid>
		</item>
		<item>
			<title>how to show calculate data in textbox</title>
			<link>http://www.daniweb.com/forums/thread231579.html</link>
			<pubDate>Tue, 20 Oct 2009 06:32:26 GMT</pubDate>
			<description>I have two dtpicker. here I want I select two date from dtpicker and the total sum of amount will show in two diffrent textbox. like: I have two field, expense and income. the total amount of expenses will show in a textbox by selected date and other textbox show income. how I do it?</description>
			<content:encoded><![CDATA[<div>I have two dtpicker. here I want I select two date from dtpicker and the total sum of amount will show in two diffrent textbox. like: I have two field, expense and income. the total amount of expenses will show in a textbox by selected date and other textbox show income. how I do it?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>abu taher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231579.html</guid>
		</item>
		<item>
			<title>fatal</title>
			<link>http://www.daniweb.com/forums/thread231552.html</link>
			<pubDate>Tue, 20 Oct 2009 03:45:32 GMT</pubDate>
			<description>fatal exception error in windows 98</description>
			<content:encoded><![CDATA[<div>fatal exception error in windows 98</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Jithan_palakkal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231552.html</guid>
		</item>
		<item>
			<title>Login Form</title>
			<link>http://www.daniweb.com/forums/thread231519.html</link>
			<pubDate>Tue, 20 Oct 2009 00:49:43 GMT</pubDate>
			<description><![CDATA[Can someone help me to create a login screen. I am new to VB and don't know how to proceed with. 
I have VB 6.0 and MS-Access 2003 and Ms-Access 2007. 
 
I have a form with 2 textbox(userid & password) 
2 buttons (Login and Exit) 
A database with name Login.mdb (table name: tbllogin) 
 
I wish to...]]></description>
			<content:encoded><![CDATA[<div>Can someone help me to create a login screen. I am new to VB and don't know how to proceed with.<br />
I have VB 6.0 and MS-Access 2003 and Ms-Access 2007.<br />
<br />
I have a form with 2 textbox(userid &amp; password)<br />
2 buttons (Login and Exit)<br />
A database with name Login.mdb (table name: tbllogin)<br />
<br />
I wish to write a code which will help the user only if his or her user id and password exist in the database. If wrong input is given it should not allow the user to go to next form.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>krishna_veni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231519.html</guid>
		</item>
		<item>
			<title>Help in making a project on ATM machine</title>
			<link>http://www.daniweb.com/forums/thread231415.html</link>
			<pubDate>Mon, 19 Oct 2009 14:37:35 GMT</pubDate>
			<description>i am using floppy as ATM card.. 
am thinking that using the serial number of the floppy, i can check with the database and confirm it and loging the user.. 
but i have problem in getting the code for getting the  code for getting the serial number of the media.. 
my email id is...</description>
			<content:encoded><![CDATA[<div>i am using floppy as ATM card..<br />
am thinking that using the serial number of the floppy, i can check with the database and confirm it and loging the user..<br />
but i have problem in getting the code for getting the  code for getting the serial number of the media..<br />
my email id is <a href="mailto:kevin_patrick1989@yahoo.com">kevin_patrick1989@yahoo.com</a>, please respond</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>karlosekevin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231415.html</guid>
		</item>
		<item>
			<title>Code Snippet Scanner :Scanning image of a Picture control to a Rich Text Box</title>
			<link>http://www.daniweb.com/code/snippet231383.html</link>
			<pubDate>Mon, 19 Oct 2009 11:45:55 GMT</pubDate>
			<description>Hello friends i made a small program like a scanner it will scan an image file to a Rich Text Box. 
My friend helped me in providing the code to access the pixels of an image.Hope you will like the code. 
 
Try it .... 
 
 
 
This need : 
 
Reference files :</description>
			<content:encoded><![CDATA[<div>Hello friends i made a small program like a scanner it will scan an image file to a Rich Text Box.<br />
My friend helped me in providing the code to access the pixels of an image.Hope you will like the code.<br />
<br />
Try it ....<br />
<br />
<br />
<br />
This need :<br />
<br />
Reference files :<br />
<br />
Visual Basic For Applications<br />
Visual Basic runtime objects and procedures<br />
Visual basic objects and procedures<br />
OLE Automation<br />
<br />
Add <br />
<br />
1 - Rich Text Box - Rt1<br />
2 - One Common Dialog Control named cmd<br />
3 - 2 Command Buttons<br />
4 - One Picture Box &amp;<br />
5 - 2 HScroll s<br />
<br />
Try to make the Picture control Atuosize to false.</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12193&amp;d=1255952227" target="_blank">Scanner.jpg</a> (49.6 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Vineeth K</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231383.html</guid>
		</item>
		<item>
			<title>pls help me: i need VB coding for search</title>
			<link>http://www.daniweb.com/forums/thread231311.html</link>
			<pubDate>Mon, 19 Oct 2009 05:15:30 GMT</pubDate>
			<description>i need the right coding for search: i am currently working in a line verification system, but i have trouble creating cmdFind for searching telephone details, ex. i would like to search for a specific tel details, i want to use search by telephone number...please kindly help me...thank you and god...</description>
			<content:encoded><![CDATA[<div>i need the right coding for search: i am currently working in a line verification system, but i have trouble creating cmdFind for searching telephone details, ex. i would like to search for a specific tel details, i want to use search by telephone number...please kindly help me...thank you and god bless...^_^</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>caroline09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231311.html</guid>
		</item>
		<item>
			<title>Linking VB and a DB access.</title>
			<link>http://www.daniweb.com/forums/thread231280.html</link>
			<pubDate>Mon, 19 Oct 2009 02:01:37 GMT</pubDate>
			<description>Good day sir.. 
 
i just want to know how to link the access and VB6? 
 
and im wondering if how ado works...</description>
			<content:encoded><![CDATA[<div>Good day sir..<br />
<br />
i just want to know how to link the access and VB6?<br />
<br />
and im wondering if how ado works...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>wil0022</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231280.html</guid>
		</item>
		<item>
			<title>accessing other windows using VB</title>
			<link>http://www.daniweb.com/forums/thread231192.html</link>
			<pubDate>Sun, 18 Oct 2009 15:15:41 GMT</pubDate>
			<description>do anyone 1 knows hw 2 access other running windows in desktop using VB??? 
i saw it in a buk</description>
			<content:encoded><![CDATA[<div>do anyone 1 knows hw 2 access other running windows in desktop using VB???<br />
i saw it in a buk</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>vineeth5march19</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231192.html</guid>
		</item>
		<item>
			<title>Coding an infinity Number</title>
			<link>http://www.daniweb.com/forums/thread231176.html</link>
			<pubDate>Sun, 18 Oct 2009 14:00:20 GMT</pubDate>
			<description>Please help me to code an infinity number in VB</description>
			<content:encoded><![CDATA[<div>Please help me to code an infinity number in VB</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>joeweks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231176.html</guid>
		</item>
		<item>
			<title>whats wrong here???</title>
			<link>http://www.daniweb.com/forums/thread231152.html</link>
			<pubDate>Sun, 18 Oct 2009 11:41:55 GMT</pubDate>
			<description>Hello there!! i am glad for the help i have recieved before which helped solve my problems. 
my challenge now is that the following code fails to save to my Access 2007 database. it doesnt give me any errors but it does nothing. i want details i enter into the text fields saved into the database....</description>
			<content:encoded><![CDATA[<div>Hello there!! i am glad for the help i have recieved before which helped solve my problems.<br />
my challenge now is that the following code fails to save to my Access 2007 database. it doesnt give me any errors but it does nothing. i want details i enter into the text fields saved into the database. below is a set of both the codes for the form load and the save button. Please help me.<br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub Form_Load()<br />
Dim conn As Connection<br />
Dim rs As Recordset<br />
Set conn = New Connection<br />
conn.Open &quot;PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Subscriptions Project\subscriptions.mdb&quot;<br />
Set rs = New Recordset<br />
With rs<br />
.ActiveConnection = conn<br />
.LockType = adLockOptimistic<br />
.Source = &quot;select * from individual&quot;<br />
.Open<br />
End With<br />
End Sub</pre><br />
and here is the code for the Save button.<br />
 <pre style="margin:20px; line-height:13px">Private Sub cmdsave_Click()<br />
rs.Fields(&quot;firstname&quot;) = txtfname.Text<br />
End Sub</pre><br />
NB im not using ADODC for saving!!<br />
Thanx you a lot.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231152.html</guid>
		</item>
		<item>
			<title>comparing columns in excel 2007</title>
			<link>http://www.daniweb.com/forums/thread230922.html</link>
			<pubDate>Sat, 17 Oct 2009 12:16:47 GMT</pubDate>
			<description>dear experts, 
 
how to compare two different columns to check that whether the values in the cell are same or different using excel 2007... 
 
 
 
thanks in advance,</description>
			<content:encoded><![CDATA[<div>dear experts,<br />
<br />
how to compare two different columns to check that whether the values in the cell are same or different using excel 2007...<br />
<br />
<br />
<br />
thanks in advance,<br />
<br />
<br />
<br />
4ukh</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>4ukh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230922.html</guid>
		</item>
		<item>
			<title>calculate field</title>
			<link>http://www.daniweb.com/forums/thread230880.html</link>
			<pubDate>Sat, 17 Oct 2009 06:54:03 GMT</pubDate>
			<description>in my data report I have two rptfunction. both of them show the total sum. here I want 1 extra rptfuncion show the calculate amount. I mean it show (1st rptfunction - 2nd rptfunction). like: 1st rpt...2000 and 2nd rpt....1500. so the 3rd rpt... show 500. and one more thing if it show 500 the a...</description>
			<content:encoded><![CDATA[<div>in my data report I have two rptfunction. both of them show the total sum. here I want 1 extra rptfuncion show the calculate amount. I mean it show (1st rptfunction - 2nd rptfunction). like: 1st rpt...2000 and 2nd rpt....1500. so the 3rd rpt... show 500. and one more thing if it show 500 the a label. caption show profit. if it show   -500 then it show loss.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>abu taher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230880.html</guid>
		</item>
		<item>
			<title>Populating an array in VB</title>
			<link>http://www.daniweb.com/forums/thread230805.html</link>
			<pubDate>Fri, 16 Oct 2009 19:52:30 GMT</pubDate>
			<description><![CDATA[In the mid-'90s I wrote in Quick Basic some lab simulations for science classes I was teaching.  I want to rewrite them in VB and thought that I could just paste old QB code into VB... not so, of course. 
 
I want to know how to read data from within the program into an array.  Below is a sample of...]]></description>
			<content:encoded><![CDATA[<div>In the mid-'90s I wrote in Quick Basic some lab simulations for science classes I was teaching.  I want to rewrite them in VB and thought that I could just paste old QB code into VB... not so, of course.<br />
<br />
I want to know how to read data from within the program into an array.  Below is a sample of the old QBasic code I'm trying to duplicate.<br />
<br />
 <pre style="margin:20px; line-height:13px">DATA 32<br />
'DATA is Name, kingdom, p for photosynthesis, s for single celled<br />
DATA Smeglitious nobilis,monera,,s<br />
DATA Computicus garianus,monera,,s<br />
DATA Fastidyus hassica,monera,p,s<br />
DATA Diminutia scotia,protista,p,s<br />
DATA Strongellica sphinctius,protista,,s<br />
<br />
DIM org$(5, 4)<br />
ReadOrganismData:<br />
&nbsp; READ d<br />
&nbsp; &nbsp; FOR organisms = 1 TO d<br />
&nbsp; &nbsp; &nbsp; &nbsp; FOR organisminfo = 1 TO 4<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; READ org$(organisms, organisminfo)<br />
&nbsp; &nbsp; &nbsp; &nbsp; NEXT organisminfo<br />
&nbsp; &nbsp; NEXT organisms<br />
orgName = 1<br />
Kingdom = 2<br />
photo = 3<br />
singleCelled = 4</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>OldQBasicer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230805.html</guid>
		</item>
		<item>
			<title>Adodc Connection.</title>
			<link>http://www.daniweb.com/forums/thread230720.html</link>
			<pubDate>Fri, 16 Oct 2009 14:01:04 GMT</pubDate>
			<description><![CDATA[Anyone please help. Why is it that *Adodc.recordset.save* cannot work. it says...object in the with variable not set.... 
can anyone tell me what the problem is and is it normal to use  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Anyone please help. Why is it that <span style="font-weight:bold">Adodc.recordset.save</span> cannot work. it says...object in the with variable not set....<br />
can anyone tell me what the problem is and is it normal to use <br />
<br />
 <pre style="margin:20px; line-height:13px">Adodc.Recordset.fields &quot;name&quot; = txtname .text;</pre>what is wrong with my code. is anything missing there because i cannot save anything with this code<br />
Thank You for assisting</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230720.html</guid>
		</item>
		<item>
			<title>Database Connection Problem</title>
			<link>http://www.daniweb.com/forums/thread230715.html</link>
			<pubDate>Fri, 16 Oct 2009 13:45:33 GMT</pubDate>
			<description><![CDATA[i have created a database for subscriptions in MS Access 2007. I want to link it with my forms using the code below but its saying unrecognised database format. 
 
*Dim conn As Connection 
Set conn = New Connection 
conn.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data...]]></description>
			<content:encoded><![CDATA[<div>i have created a database for subscriptions in MS Access 2007. I want to link it with my forms using the code below but its saying unrecognised database format.<br />
<br />
<span style="font-weight:bold">Dim conn As Connection<br />
Set conn = New Connection<br />
conn.Open &quot;PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\subscriptions2.mdb&quot;.......</span><br />
<br />
Now i have converted it to Access 2000 format and it wont work. I have also converted to acces 2002-2003 but it doesnt work either. i wanted to convert it to Access 97 format but that option is not there on Save As in Access.<br />
Can anyone help because i cant link with the database.<br />
Thank You</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230715.html</guid>
		</item>
		<item>
			<title>New in this site</title>
			<link>http://www.daniweb.com/forums/thread230646.html</link>
			<pubDate>Fri, 16 Oct 2009 09:06:25 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm glad I've been here. I hope I can share, ask or answer questions and make contacts. Anyway I have my tutorial for VB6, HTML, and SQL at http://www.basicprogtutor.com. Anyone is invited to view my site and leave comments here. 
 
Thanks.]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm glad I've been here. I hope I can share, ask or answer questions and make contacts. Anyway I have my tutorial for VB6, HTML, and SQL at <a rel="nofollow" class="t" href="http://www.basicprogtutor.com" target="_blank">http://www.basicprogtutor.com</a>. Anyone is invited to view my site and leave comments here.<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>babyboo0223</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230646.html</guid>
		</item>
		<item>
			<title>ctrl question...</title>
			<link>http://www.daniweb.com/forums/thread230611.html</link>
			<pubDate>Fri, 16 Oct 2009 05:49:41 GMT</pubDate>
			<description><![CDATA[is there a specific character for Ctrl? 
 
for example in Alt.. 
when you type &Save in the caption of a button.. the key that you gonna press is Alt+S.. how about for Ctrl?]]></description>
			<content:encoded><![CDATA[<div>is there a specific character for Ctrl?<br />
<br />
for example in Alt..<br />
when you type &amp;Save in the caption of a button.. the key that you gonna press is Alt+S.. how about for Ctrl?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>xWiredx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230611.html</guid>
		</item>
	</channel>
</rss>
