 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: VB6 retrieving MSAccess all records in VB6 ComboBox</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: abdulla362</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-107628</link>
		<dc:creator>abdulla362</dc:creator>
		<pubDate>Sun, 20 May 2012 08:52:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-107628</guid>
		<description><![CDATA[:(]]></description>
		<content:encoded><![CDATA[<p> <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abbly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-107113</link>
		<dc:creator>abbly</dc:creator>
		<pubDate>Wed, 02 May 2012 07:30:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-107113</guid>
		<description><![CDATA[Hi guys, I have a question regards on visual basic 6. I made some project and finally when am going to Packaging the program, the software didn&#039;t work properly. the problem is the path of the database. I created the connection using adodc component. 
Can you help me to fix this problem?

Thanks,]]></description>
		<content:encoded><![CDATA[<p>Hi guys, I have a question regards on visual basic 6. I made some project and finally when am going to Packaging the program, the software didn&#8217;t work properly. the problem is the path of the database. I created the connection using adodc component.<br />
Can you help me to fix this problem?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-102841</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 13 Feb 2012 17:42:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-102841</guid>
		<description><![CDATA[Kawa23, you should &lt;a href=&quot;http://itknowledgeexchange.techtarget.com/itanswers/ask_question/&quot;&gt;create a new question&lt;/a&gt;.

In your new question, please include information about your VB version and operating system, and include your whole code.  Also, let us know the line of code that the compiler marks as erroneous.]]></description>
		<content:encoded><![CDATA[<p>Kawa23, you should <a href="http://itknowledgeexchange.techtarget.com/itanswers/ask_question/">create a new question</a>.</p>
<p>In your new question, please include information about your VB version and operating system, and include your whole code.  Also, let us know the line of code that the compiler marks as erroneous.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kawa23</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-102836</link>
		<dc:creator>kawa23</dc:creator>
		<pubDate>Mon, 13 Feb 2012 15:59:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-102836</guid>
		<description><![CDATA[dear my friends please can someone help me in my codes,my code is 
adodc1.recordsourse=&quot;select * from table2 where name=&quot;&#039;&amp;text2&amp;&#039;&quot;&quot;
adodc1.commandtype=adcmdtext
adodc1.refresh
but the computer give me the message that my code is not right,massage is (compile error: expected : end of statement) please help me.]]></description>
		<content:encoded><![CDATA[<p>dear my friends please can someone help me in my codes,my code is<br />
adodc1.recordsourse=&#8221;select * from table2 where name=&#8221;&#8216;&amp;text2&amp;&#8217;&#8221;"<br />
adodc1.commandtype=adcmdtext<br />
adodc1.refresh<br />
but the computer give me the message that my code is not right,massage is (compile error: expected : end of statement) please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paulin</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-101530</link>
		<dc:creator>paulin</dc:creator>
		<pubDate>Thu, 12 Jan 2012 02:02:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-101530</guid>
		<description><![CDATA[how to code save using vb 6.0 and connect to wamp server?]]></description>
		<content:encoded><![CDATA[<p>how to code save using vb 6.0 and connect to wamp server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blamer00</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-75384</link>
		<dc:creator>blamer00</dc:creator>
		<pubDate>Wed, 31 Mar 2010 02:59:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-75384</guid>
		<description><![CDATA[i&#039;m developing a program and i use vb6.0,,my question is how can i retrieve a data from a datagridview and display it in a textbox?? without using ADODC..i prefer ADODB only..any suggestions??? thank you so much..]]></description>
		<content:encoded><![CDATA[<p>i&#8217;m developing a program and i use vb6.0,,my question is how can i retrieve a data from a datagridview and display it in a textbox?? without using ADODC..i prefer ADODB only..any suggestions??? thank you so much..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blamer00</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-75383</link>
		<dc:creator>blamer00</dc:creator>
		<pubDate>Wed, 31 Mar 2010 02:56:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-75383</guid>
		<description><![CDATA[hi im newbie here..]]></description>
		<content:encoded><![CDATA[<p>hi im newbie here..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-70907</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 26 Nov 2009 14:22:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-70907</guid>
		<description><![CDATA[Ohailo, please create a new question, and provide more information about your problem and the software your are using.

Are you using VB ?  what version ?
Do you know how to connect to the database ?
What is your specific doubt/problem ?]]></description>
		<content:encoded><![CDATA[<p>Ohailo, please create a new question, and provide more information about your problem and the software your are using.</p>
<p>Are you using VB ?  what version ?<br />
Do you know how to connect to the database ?<br />
What is your specific doubt/problem ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ohailo</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-70905</link>
		<dc:creator>ohailo</dc:creator>
		<pubDate>Thu, 26 Nov 2009 13:20:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-70905</guid>
		<description><![CDATA[hi can i ask for a help??? i want a combo box that will retrieve the information in my ms access.If i save or delete record it will be listed there when i scroll down the combo box..can you help me please?]]></description>
		<content:encoded><![CDATA[<p>hi can i ask for a help??? i want a combo box that will retrieve the information in my ms access.If i save or delete record it will be listed there when i scroll down the combo box..can you help me please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vb6-retrieving-msaccess-all-records-in-vb6-combobox/#comment-62883</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Tue, 28 Apr 2009 19:02:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-62883</guid>
		<description><![CDATA[You could use this code to populate the combo (this is for Sql Server, so the connection string should be modified as needed)

&lt;pre&gt;Dim adoConnection As ADODB.Connection
Dim adoRecordset As ADODB.Recordset
Dim connectString As String

&#039;-Create a new connection --
Set adoConnection = New ADODB.Connection
&#039;-Create a new recordset --
Set adoRecordset = New ADODB.Recordset

&#039;-Build the connection string to use when we open the connection --
&#039;connectString = &quot;Data Source=sql;Database=test;Uid=your_username; Pwd=your_password;&quot;

adoConnection.Open connectString
&#039;adoRecordset.Open &quot;SELECT field_x FROM table_x&quot;, adoConnection

&#039; Populate the combo
Do Until adoRecordset.EOF
    Combo1.AddItem adoRecordset!user_id
    adoRecordset.MoveNext
Loop&lt;/pre&gt;

Then, to show the complete records you could add a data grid and an ADODC control to use as data source (although this could also be done programmatically as above), and put some code similar to the following in some event of the combo (click event, for example), to show the records related to the value selected from the combo:

&lt;pre&gt;Adodc1.RecordSource = &quot;SELECT * from table_x where field_x =&#039;&quot; &amp; Combo1.Text &amp; &quot;&#039;&quot;
Adodc1.Refresh&lt;/pre&gt;

Feel free to ask if this is not clear enough.]]></description>
		<content:encoded><![CDATA[<p>You could use this code to populate the combo (this is for Sql Server, so the connection string should be modified as needed)</p>
<pre>Dim adoConnection As ADODB.Connection
Dim adoRecordset As ADODB.Recordset
Dim connectString As String

'-Create a new connection --
Set adoConnection = New ADODB.Connection
'-Create a new recordset --
Set adoRecordset = New ADODB.Recordset

'-Build the connection string to use when we open the connection --
'connectString = "Data Source=sql;Database=test;Uid=your_username; Pwd=your_password;"

adoConnection.Open connectString
'adoRecordset.Open "SELECT field_x FROM table_x", adoConnection

' Populate the combo
Do Until adoRecordset.EOF
    Combo1.AddItem adoRecordset!user_id
    adoRecordset.MoveNext
Loop</pre>
<p>Then, to show the complete records you could add a data grid and an ADODC control to use as data source (although this could also be done programmatically as above), and put some code similar to the following in some event of the combo (click event, for example), to show the records related to the value selected from the combo:</p>
<pre>Adodc1.RecordSource = "SELECT * from table_x where field_x ='" &amp; Combo1.Text &amp; "'"
Adodc1.Refresh</pre>
<p>Feel free to ask if this is not clear enough.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/8 queries in 0.043 seconds using memcached
Object Caching 399/400 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 23:48:59 -->