<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Chronolisme</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sun, 28 Jun 2026 13:44:36 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Main Page News RSS</title>
            <link>http://forum.lowyat.net/topic/654504</link>
            <description>RSS live feeds for the main page have not been working for a while now, can somebody check it out?</description>
            <author>Chronolisme</author>
            <category>Feedback and Helpdesk</category>
            <pubDate>Tue, 18 Mar 2008 18:53:51 +0800</pubDate>
        </item>
        <item>
            <title>1394 Connection missing.</title>
            <link>http://forum.lowyat.net/topic/620265</link>
            <description>I recently bought a new laptop that comes with 1394 Firewire. However, the laptop&amp;#39;s &amp;quot;Network Connections&amp;quot; does not show any 1394 connection at all.&lt;br /&gt;&lt;br /&gt;I previously used this 1394 connection on my desktop to set up Firewire Ethernet for transfering files between computers because of the high speed it offers. Now I am unable to use firewire to transfer files from my laptop to the desktop due to this problem.&lt;br /&gt;&lt;br /&gt;Does anybody know how to fix this?&lt;br /&gt;&lt;br /&gt;I&amp;#39;m running on Windows Vista Business.</description>
            <author>Chronolisme</author>
            <category>Technical Support</category>
            <pubDate>Sat, 26 Jan 2008 22:43:13 +0800</pubDate>
        </item>
        <item>
            <title>How to load Gnome interface?</title>
            <link>http://forum.lowyat.net/topic/487685</link>
            <description>I&amp;#39;m completely new to Linux so I don&amp;#39;t know anything at all about it.&lt;br /&gt;&lt;br /&gt;I downloaded the Ubuntu ISO and burnt it into a cd. Using it, I installed the LAMP server and is now able to boot linux.&lt;br /&gt;However I do not know how to load the Gnome interface, can anybody help?</description>
            <author>Chronolisme</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Fri, 13 Jul 2007 19:03:12 +0800</pubDate>
        </item>
        <item>
            <title>Question about sorting</title>
            <link>http://forum.lowyat.net/topic/467848</link>
            <description>I have a question regarding the efficiency of sorting algorithms.&lt;br /&gt;&lt;br /&gt;Why is the asymptotic complexity for the worst case scenario of sorting algorithms that utilize recursion equal to &lt;i&gt;n log n&lt;/i&gt;? A mathematical explanation would be best.&lt;br /&gt;&lt;br /&gt;I understand that this is more of a mathematical question, but I couldn&amp;#39;t think of a more appropriate place to post within this forum.</description>
            <author>Chronolisme</author>
            <category>Codemasters</category>
            <pubDate>Tue, 05 Jun 2007 09:33:41 +0800</pubDate>
        </item>
        <item>
            <title>Auto-Refresh an Image</title>
            <link>http://forum.lowyat.net/topic/454572</link>
            <description>If I would like an image within a website to refresh itself in every X seconds, how can I do it?&lt;br /&gt;&lt;br /&gt;I want only the image to refresh, not the entire page.</description>
            <author>Chronolisme</author>
            <category>Codemasters</category>
            <pubDate>Wed, 09 May 2007 22:24:06 +0800</pubDate>
        </item>
        <item>
            <title>Bukit Jalil Badminton Courts</title>
            <link>http://forum.lowyat.net/topic/447489</link>
            <description>Does anybody know how to book the Bukit Jalil Badminton Courts?&lt;br /&gt;&lt;br /&gt;No more badminton courts at Bukit Jalil...  &lt;!--emo&amp;:shakehead:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/shakehead.gif' border='0' style='vertical-align:middle' alt='shakehead.gif' /&gt;&lt;!--endemo--&gt;  &lt;!--emo&amp;:shakehead:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/shakehead.gif' border='0' style='vertical-align:middle' alt='shakehead.gif' /&gt;&lt;!--endemo--&gt;  &lt;!--emo&amp;:shakehead:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/shakehead.gif' border='0' style='vertical-align:middle' alt='shakehead.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Chronolisme</author>
            <category>The Sports Channel</category>
            <pubDate>Wed, 25 Apr 2007 12:27:11 +0800</pubDate>
        </item>
        <item>
            <title>VB.NET 2005 Help Again~</title>
            <link>http://forum.lowyat.net/topic/433802</link>
            <description>Using Access as my database, I made a form to add in records to the db and also wanted the ID to auto increment. &lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Public Class Form2&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub Form2_Load&amp;#40;ByVal sender As System.Object, ByVal e As System.EventArgs&amp;#41; Handles MyBase.Load&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table2TableAdapter.Fill&amp;#40;Me.DbDataSet.Table2&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table1TableAdapter.Fill&amp;#40;Me.DbDataSet.Table1&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table1BindingSource.AddNew&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GetID&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub GetID&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dr&amp;#40;&amp;#41; As DataRow = Me.DbDataSet.Tables&amp;#40;&amp;#34;Table2&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;TableName=&amp;#39;Table1&amp;#39;&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;txtID.Text = dr&amp;#40;0&amp;#41;&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub Button2_Click&amp;#40;ByVal sender As System.Object, ByVal e As System.EventArgs&amp;#41; Handles Button2.Click&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim orderid As Integer = txtID.Text&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim num As Integer&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Integer.TryParse&amp;#40;orderid, num&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dr2&amp;#40;&amp;#41; As DataRow = Me.DbDataSet.Tables&amp;#40;&amp;#34;Table2&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;TableName=&amp;#39;Table1&amp;#39;&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr2&amp;#40;0&amp;#41;&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41; = num + 1&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Validate&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table2BindingSource.EndEdit&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table2TableAdapter.Update&amp;#40;Me.DbDataSet.Table2&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table1BindingSource.EndEdit&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table1TableAdapter.Update&amp;#40;Me.DbDataSet.Table1&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Close&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub Button1_Click&amp;#40;ByVal sender As System.Object, ByVal e As System.EventArgs&amp;#41; Handles Button1.Click&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Close&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;End Class&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;The problem here is whenever I leave the form by click &amp;#39;back&amp;#39; and come back to the form, the ID is not entered into the text box unless I exit the program and start it again.&lt;br /&gt;&lt;br /&gt;Please Help.&lt;br /&gt;&lt;br /&gt;Source file: &lt;a href='http://www.chronolisme.com/files/test.rar' target='_blank'&gt;http://www.chronolisme.com/files/test.rar&lt;/a&gt;</description>
            <author>Chronolisme</author>
            <category>Codemasters</category>
            <pubDate>Thu, 29 Mar 2007 00:07:21 +0800</pubDate>
        </item>
        <item>
            <title>VB.NET 2005 Help~</title>
            <link>http://forum.lowyat.net/topic/431150</link>
            <description>Current Problem:&lt;br /&gt;Using Access as my database, I made a form to add in records to the db and also wanted the ID to auto increment. &lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Public Class Form2&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub Form2_Load&amp;#40;ByVal sender As System.Object, ByVal e As System.EventArgs&amp;#41; Handles MyBase.Load&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table2TableAdapter.Fill&amp;#40;Me.DbDataSet.Table2&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table1TableAdapter.Fill&amp;#40;Me.DbDataSet.Table1&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table1BindingSource.AddNew&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GetID&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub GetID&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dr&amp;#40;&amp;#41; As DataRow = Me.DbDataSet.Tables&amp;#40;&amp;#34;Table2&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;TableName=&amp;#39;Table1&amp;#39;&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;txtID.Text = dr&amp;#40;0&amp;#41;&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub Button2_Click&amp;#40;ByVal sender As System.Object, ByVal e As System.EventArgs&amp;#41; Handles Button2.Click&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim orderid As Integer = txtID.Text&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim num As Integer&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Integer.TryParse&amp;#40;orderid, num&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dr2&amp;#40;&amp;#41; As DataRow = Me.DbDataSet.Tables&amp;#40;&amp;#34;Table2&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;TableName=&amp;#39;Table1&amp;#39;&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr2&amp;#40;0&amp;#41;&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41; = num + 1&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Validate&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table2BindingSource.EndEdit&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table2TableAdapter.Update&amp;#40;Me.DbDataSet.Table2&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table1BindingSource.EndEdit&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Table1TableAdapter.Update&amp;#40;Me.DbDataSet.Table1&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Close&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub Button1_Click&amp;#40;ByVal sender As System.Object, ByVal e As System.EventArgs&amp;#41; Handles Button1.Click&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Close&amp;#40;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;End Class&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;The problem here is whenever I leave the form by click &amp;#39;back&amp;#39; and come back to the form, the ID is not entered into the text box unless I exit the program and start it again.&lt;br /&gt;&lt;br /&gt;The source file is included as an attachment, rename the extension to .rar and unzip it.&lt;br /&gt;Please Help.&lt;br /&gt;&lt;br /&gt;Suggested Solution:&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('f14f6454c79d20d37116551130e1388a')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;f14f6454c79d20d37116551130e1388a&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;br /&gt;Currently no solution.&lt;br /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Previous problem 1:&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('dd344915b43a4a058d00466606a1fd78')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;dd344915b43a4a058d00466606a1fd78&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;In order to get a value from MS Access(from a table called NextID, with 2 columns, which are TableID and NextID) db that is binded to it, I made a Module with this code inside&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Module GetNewValue&lt;br /&gt; &amp;nbsp; &amp;nbsp;Public Function GetValue&amp;#40;ByVal action As String, ByRef ds As DataSet&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim dr&amp;#40;&amp;#41; As DataRow = ds.Tables&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;TableID&amp;#34; = action&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return dr&amp;#40;0&amp;#41;&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;.ToString&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Function&lt;br /&gt;End Module&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;However when I try to use this function, it returns me an error saying &amp;quot;Index was outside the bounds of the array.&amp;quot; pointing to the line &amp;quot;Return dr(0)(&amp;quot;NextID&amp;quot;).ToString&amp;quot;. I&amp;#39;m sure there are data within that table, but why isn&amp;#39;t there any result in the array?&lt;br /&gt;&lt;br /&gt;Are there any alternative ways to get the value of another column with only the value of the Primary Key?&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;Suggested Solutions to Problem 1:&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('d0f06e53b00696869fd37a0d311e2eb8')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;d0f06e53b00696869fd37a0d311e2eb8&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;br /&gt;&lt;!--QuoteBegin-narf03+Mar 23 2007, 05:05 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(narf03 &amp;#064; Mar 23 2007, 05:05 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;this line should be the problem&lt;br /&gt;&lt;br /&gt;Dim dr() As DataRow = ds.Tables(&amp;quot;NextID&amp;quot;).Select(&amp;quot;TableID&amp;quot; = action)&lt;br /&gt;&lt;br /&gt;try change to&lt;br /&gt;&lt;br /&gt;Dim dr() As DataRow = ds.Tables(&amp;quot;NextID&amp;quot;).Select(&amp;quot;TableID=&amp;#39;&amp;quot; &amp;amp; action &amp;amp; &amp;quot;&amp;#39;&amp;quot;)&lt;br /&gt;&lt;br /&gt;and do some basic validation&lt;br /&gt;&lt;br /&gt;if dr.length &amp;gt; 0 then returndr(0)(&amp;quot;nextid&amp;quot;)&lt;br /&gt;return nothing &amp;#39; &amp;lt;- if no row(s) selected&lt;br /&gt;&lt;br /&gt;if it doesnt fix, include the dataset to us&lt;br /&gt;[right][snapback]10875851[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-Chronolisme+Mar 23 2007, 05:12 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(Chronolisme &amp;#064; Mar 23 2007, 05:12 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;GetValue&amp;#40;&amp;#34;Product&amp;#34;, Me.DbDTSDataSet&amp;#41;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Module GetNewValue&lt;br /&gt; &amp;nbsp; &amp;nbsp;Public Function GetValue&amp;#40;ByVal action As String, ByRef ds As DataSet&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dr&amp;#40;&amp;#41; As DataRow = ds.Tables&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;TableID=&amp;#34; &amp;amp; action &amp;amp; &amp;#34;&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return dr&amp;#40;0&amp;#41;&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;.ToString&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Function&lt;br /&gt;End Module&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;Now it says &amp;quot;Cannot find column [Product].&amp;quot;&lt;br /&gt;&lt;br /&gt;Is there anything that I missed out in the module? I passed in the dataset by reference other than that do I have to do any binding for the module? What I showed here is the entire module file....&lt;br /&gt;&lt;br /&gt;Please Help~&lt;br /&gt;&lt;br /&gt;My friend have done something like this before in VB6, which is what I&amp;#39;m trying to do now in VB.NET 2005 :&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Attribute VB_Name = &amp;#34;Module&amp;#34;&lt;br /&gt;Public Function GetNewValue&amp;#40;ByRef dbConn As Adodc, tblID As String&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Dim rs As ADODB.Recordset&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Dim tmp, tmp2 As String&lt;br /&gt; &amp;nbsp; &amp;nbsp;Dim iBuff As Integer&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;tmp = dbConn.RecordSource&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;With dbConn&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.RecordSource = &amp;#34;SELECT * FROM NextID WHERE TableID=&amp;#39;&amp;#34; + tblID + &amp;#34;&amp;#39;&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.Refresh&lt;br /&gt; &amp;nbsp; &amp;nbsp;End With&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Set rs = dbConn.Recordset&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;If &amp;#40;Not rs.EOF&amp;#41; Then&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;iBuff = rs.Fields&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmp2 = iBuff&lt;br /&gt; &amp;nbsp; &amp;nbsp;End If&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;rs.Close&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;GetNewValue = tmp2&lt;br /&gt;End Function&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;[right][snapback]10875925[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-narf03+Mar 23 2007, 06:57 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(narf03 &amp;#064; Mar 23 2007, 06:57 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;read my code above carefully&lt;br /&gt;&lt;br /&gt;they are different&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&amp;#34;&amp;#39;&amp;#34;&lt;br /&gt;&amp;#34;&amp;#34;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;ok i copy paste here&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Dim dr&amp;#40;&amp;#41; As DataRow = ds.Tables&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;TableID=&amp;#39;&amp;#34; &amp;amp; action &amp;amp; &amp;#34;&amp;#39;&amp;#34;&amp;#41;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;[right][snapback]10877302[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-Chronolisme+Mar 24 2007, 12:58 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(Chronolisme &amp;#064; Mar 24 2007, 12:58 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;Sorry that was my mistake~&lt;br /&gt;&lt;br /&gt;It now claims that &amp;quot;Index was outside the bounds of the array.&amp;quot;...&lt;br /&gt;&lt;br /&gt;and dr.length shows 0... which means it returns no results~&lt;br /&gt;[right][snapback]10885336[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-narf03+Mar 24 2007, 05:58 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(narf03 &amp;#064; Mar 24 2007, 05:58 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;ds.Tables(&amp;quot;NextID&amp;quot;)&lt;br /&gt;&lt;br /&gt;make sure you have a table with this name in the dataset&lt;br /&gt;&lt;br /&gt;.Select(&amp;quot;TableID=&amp;#39;&amp;quot; &amp;amp; action &amp;amp; &amp;quot;&amp;#39;&amp;quot;)&lt;br /&gt;&lt;br /&gt;and make sure u have a field which call &amp;quot;TableID&amp;quot; and a row or data which its TableID is same as your variable action&lt;br /&gt;&lt;br /&gt;You can export data by command&lt;br /&gt;&lt;br /&gt;ds.WriteXml(&amp;quot;c:&amp;#092;output.xml&amp;quot;)&lt;br /&gt;&lt;br /&gt;and upload the file plz&lt;br /&gt;[right][snapback]10888011[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-Chronolisme+Mar 24 2007, 06:52 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(Chronolisme &amp;#064; Mar 24 2007, 06:52 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;TableID is a column name, and variable action is a field under TableID.&lt;br /&gt;[right][snapback]10888429[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-narf03+Mar 24 2007, 11:02 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(narf03 &amp;#064; Mar 24 2007, 11:02 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;Your exported xml does not contains any data, make sure u use that line to output your xml RIGHT before you filter, so we know what kind of data is being filtered.&lt;br /&gt;&lt;br /&gt;some sample code for you to understand the relation of dataset, datatable, datarow and its content. And check the file I upload.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Private Sub Form1_Load&amp;#40;ByVal sender As System.Object, ByVal e As System.EventArgs&amp;#41; Handles MyBase.Load&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim ds As New DataSet&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ds.Tables.Add&amp;#40;&amp;#34;table1&amp;#34;&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ds.Tables&amp;#40;&amp;#34;table1&amp;#34;&amp;#41;.Columns.Add&amp;#40;&amp;#34;column1&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ds.Tables&amp;#40;0&amp;#41;.Columns.Add&amp;#40;&amp;#34;column2&amp;#34;&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dr As DataRow&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr = ds.Tables&amp;#40;0&amp;#41;.NewRow&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr&amp;#40;0&amp;#41; = &amp;#34;d1/1&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr&amp;#40;&amp;#34;column2&amp;#34;&amp;#41; = &amp;#34;d1/2&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ds.Tables&amp;#40;&amp;#34;table1&amp;#34;&amp;#41;.Rows.Add&amp;#40;dr&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr = ds.Tables&amp;#40;0&amp;#41;.NewRow&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr&amp;#40;&amp;#34;column1&amp;#34;&amp;#41; = &amp;#34;d2/1&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr&amp;#40;1&amp;#41; = &amp;#34;d2/2&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ds.Tables&amp;#40;&amp;#34;table1&amp;#34;&amp;#41;.Rows.Add&amp;#40;dr&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ds.WriteXml&amp;#40;&amp;#34;c&amp;#58;&amp;#092;sample.xml&amp;#34;&amp;#41;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim drs&amp;#40;&amp;#41; As DataRow&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;drs = ds.Tables&amp;#40;&amp;#34;table1&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;column1=&amp;#39;&amp;#34; &amp;amp; &amp;#34;d2/1&amp;#34; &amp;amp; &amp;#34;&amp;#39;&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If drs.Length &amp;#62; 0 Then MsgBox&amp;#40;drs&amp;#40;0&amp;#41;&amp;#40;1&amp;#41;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;End Class&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;[attachmentid=208809]&lt;br /&gt;[right][snapback]10890852[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-Chronolisme+Mar 25 2007, 01:05 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(Chronolisme &amp;#064; Mar 25 2007, 01:05 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Module GetNewID&lt;br /&gt; &amp;nbsp; &amp;nbsp;Public Function GetID&amp;#40;ByVal action As String, ByRef ds As DataSet&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ds.WriteXml&amp;#40;&amp;#34;c&amp;#58;/output.xml&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dr&amp;#40;&amp;#41; As DataRow = ds.Tables&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;.Select&amp;#40;&amp;#34;TableID=&amp;#39;&amp;#34; &amp;amp; action &amp;amp; &amp;#34;&amp;#39;&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return dr&amp;#40;0&amp;#41;&amp;#40;&amp;#34;NextID&amp;#34;&amp;#41;.ToString&lt;br /&gt; &amp;nbsp; &amp;nbsp;End Function&lt;br /&gt;End Module&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;This is where I put the line~&lt;br /&gt;The example you showed is done in a form, but this is a module.&lt;br /&gt;&lt;br /&gt;In your code, you created a dataset and added in new Tables, Columns and Values into the dataset u created. But I&amp;#39;m trying to obtain the values from an existing Access mdb that already has all the tables and columns and value, which is what I&amp;#39;m trying to do.&lt;br /&gt;&lt;br /&gt;Can u help me with this? I&amp;#39;m trying to use a module with a function that when a primary key is passed in, it returns the value of another column of the same row. An example code would help best~ &lt;br /&gt;&lt;br /&gt;Sorry for all the noob questions, I&amp;#39;m still learning&amp;nbsp; &lt;!--emo&amp;:P--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;Thanks for teaching~&lt;br /&gt;[right][snapback]10895162[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-narf03+Mar 26 2007, 09:29 AM--&gt;&lt;div class='quotetop'&gt;QUOTE(narf03 &amp;#064; Mar 26 2007, 09:29 AM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;dataset/datatable/datarow, etc cannot get data from your access database, u need to use OleDbDataAdapter, to fetch the data into dataset/datatable. I can say that, whatever u tried in last few days is totally wrong.&lt;br /&gt;[right][snapback]10904005[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;!--QuoteBegin-Chronolisme+Mar 26 2007, 01:43 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(Chronolisme &amp;#064; Mar 26 2007, 01:43 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;Ah~ So that&amp;#39;s the problem all the while =.=&lt;br /&gt;Didn&amp;#39;t know it can&amp;#39;t be done, oh crap, well anyway,&lt;br /&gt;I consider this problem Solved...&lt;br /&gt;[right][snapback]10907270[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;</description>
            <author>Chronolisme</author>
            <category>Codemasters</category>
            <pubDate>Fri, 23 Mar 2007 16:55:58 +0800</pubDate>
        </item>
        <item>
            <title>[Wallpaper] &amp;#20013;&amp;#22269;&amp;#20113;&amp;#21335; (China, YunNan)</title>
            <link>http://forum.lowyat.net/topic/389180</link>
            <description>These are photos I took during my trip to China YunNan last week.&lt;br /&gt;Took them to use it as wallpaper.&lt;br /&gt;I&amp;#39;m here to share them with you all  &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;The photos consist of 2 locations:&lt;br /&gt; &lt;br /&gt;1. &amp;#20113;&amp;#21335;&amp;#30707;&amp;#26519; (YunNan Stone Forest).&lt;br /&gt;2. &amp;#20029;&amp;#27743;&amp;#29577;&amp;#40857;&amp;#38634;&amp;#23665; (LiJiang Jade Dragon Snow Mountain).&lt;br /&gt;&lt;br /&gt;That&amp;#39;s about it...&lt;br /&gt;&lt;br /&gt;Merry Christmas and Happy New Year everyone&amp;#33;  &lt;!--emo&amp;:thumbs:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/thumbup.gif' border='0' style='vertical-align:middle' alt='thumbup.gif' /&gt;&lt;!--endemo--&gt;  &lt;!--emo&amp;:thumbs:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/thumbup.gif' border='0' style='vertical-align:middle' alt='thumbup.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Chronolisme</author>
            <category>Desktop Customization</category>
            <pubDate>Fri, 29 Dec 2006 14:02:44 +0800</pubDate>
        </item>
    </channel>
</rss>
