<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by firef0x</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Tue, 30 Jun 2026 03:16:25 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Pointer Cursor</title>
            <link>http://forum.lowyat.net/topic/1269558</link>
            <description>I have a few laptop&amp;#39;s pointer cursor automatically changed to hourglass cursor even i set it back in the mouse control panel.&lt;br /&gt;&lt;br /&gt;Anybody knows what&amp;#39;s the cause?</description>
            <author>firef0x</author>
            <category>Technical Support</category>
            <pubDate>Wed, 23 Dec 2009 14:03:33 +0800</pubDate>
        </item>
        <item>
            <title>Syspro Crystal Report</title>
            <link>http://forum.lowyat.net/topic/1172841</link>
            <description>I am working on a print sale using crystal report.&lt;br /&gt;&lt;br /&gt;I created a report call &amp;#39;report Main&amp;#39;, then I added in 3 &amp;#39;sub report&amp;#39;&lt;br /&gt;&lt;br /&gt;3 of the sub reports are connected to report A, report B and report C respectively.&lt;br /&gt;&lt;br /&gt;The problem is I don&amp;#39;t want 3 of the sub reports appear altogether in report main.&lt;br /&gt;I wanted only 1 sub report to be shown at a time when click on it, and the other 2 will automatically hide itself.&lt;br /&gt;&lt;br /&gt;Can crystal report achieve this? Any idea?&lt;br /&gt;&lt;br /&gt;P.S. I can&amp;#39;t use any additional program to solve this as the crystal report appear to be standalone. The crystal report only connected to the database. &lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>firef0x</author>
            <category>Codemasters</category>
            <pubDate>Thu, 24 Sep 2009 14:58:17 +0800</pubDate>
        </item>
        <item>
            <title>Unknown Recovered Hard Disk Data</title>
            <link>http://forum.lowyat.net/topic/1005747</link>
            <description>I had just got back my data from HDD recovery service.&lt;br /&gt;&lt;br /&gt;I have file types like JPG, TIF, FLC, XLS but none of this can be open but scrambled random codes.&lt;br /&gt;&lt;br /&gt;Is there any possible way to successfully read all the files?&lt;br /&gt;&lt;br /&gt;The corrupted hard disk is taken from a DVR.&lt;br /&gt;&lt;br /&gt;Hope the files are still intact.  &lt;!--emo&amp;:unsure:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/unsure.gif' border='0' style='vertical-align:middle' alt='unsure.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>firef0x</author>
            <category>Technical Support</category>
            <pubDate>Tue, 21 Apr 2009 12:22:58 +0800</pubDate>
        </item>
        <item>
            <title>Problem of class module data member</title>
            <link>http://forum.lowyat.net/topic/857192</link>
            <description>i using class module to add data member.&lt;br /&gt;i already added &amp;quot;Remarks&amp;quot; as data member in class module.&lt;br /&gt;but still not found &amp;quot;Remarks&amp;quot; data member.&lt;br /&gt;the program as below:-&lt;br /&gt;&lt;br /&gt;In class Module:(class module name :clsTariff)&lt;br /&gt;&lt;br /&gt;Option Explicit&lt;br /&gt;Dim sRemarks As String&lt;br /&gt;______________________________________________&lt;br /&gt;Property Get Remarks() As String&lt;br /&gt;    Remarks = sRemarks&lt;br /&gt;End Property&lt;br /&gt;______________________________________________&lt;br /&gt;Property Let Remarks(ByVal vData As String)&lt;br /&gt;    sRemarks = vData&lt;br /&gt;End Property&lt;br /&gt;______________________________________________&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Main form:&lt;br /&gt;&lt;br /&gt;Option Explicit&lt;br /&gt;Dim WithEvents oFrgTariff As clsTariff&lt;br /&gt;________________________________________________&lt;br /&gt;Private Sub MainForm()&lt;br /&gt; Dim bIsNew As Boolean&lt;br /&gt;&lt;br /&gt;    On Error Resume Next&lt;br /&gt;     ....&lt;br /&gt;     ....&lt;br /&gt;     ....&lt;br /&gt;&lt;br /&gt;    txtRemarks.Text = oFrgTariff.XXXX&lt;br /&gt;      	&lt;br /&gt;End Sub&lt;br /&gt;___________________________________________________&lt;br /&gt;*normally after type in oFrgTariff. will show out the data member(Remarks) i created in class module but now dint show anything.&lt;br /&gt;</description>
            <author>firef0x</author>
            <category>Codemasters</category>
            <pubDate>Wed, 26 Nov 2008 16:26:46 +0800</pubDate>
        </item>
        <item>
            <title>How to using class module to save data in msSQL.</title>
            <link>http://forum.lowyat.net/topic/854880</link>
            <description>Below is the save function i write.&lt;br /&gt;But my Lecturer want me using class module to save data.&lt;br /&gt;can someone help on this issue?&lt;br /&gt;&lt;br /&gt;Private Sub CmdSave_Click()&lt;br /&gt;&lt;br /&gt;If TxtQuantity.Text = &amp;quot;&amp;quot; Or CboCheckinvoice.Text = &amp;quot;&amp;quot; Or CboCharge.Text = &amp;quot;&amp;quot; Then&lt;br /&gt;    MsgBox &amp;quot;The Data field must not be blank.&amp;quot;, vbExclamation + vbOKOnly, &amp;quot;Warning&amp;quot;&lt;br /&gt;Else&lt;br /&gt;    intResponse = MsgBox(&amp;quot;Are you sure you want add the information in Invoice Detail?&amp;quot;, vbYesNo + vbQuestion + vbDefaultButton2, &amp;quot;Confrim&amp;quot;)&lt;br /&gt;    If intResponse = vbYes Then&lt;br /&gt;&amp;#39;       Save / Update command button&lt;br /&gt;       Set rsAdd = New ADODB.Recordset&lt;br /&gt;       Set Add = New ADODB.Connection&lt;br /&gt;&lt;br /&gt;Addconnect = &amp;quot;Provider=SQLOLEDB;Data Source=max;Initial Catalog=tutorial&amp;quot;&lt;br /&gt;       Add.Open Addconnect, &amp;quot;sa&amp;quot;, &amp;quot;sa&amp;quot;&lt;br /&gt;       AddSQL = &amp;quot;SELECT * FROM InvoiceDetails&amp;quot;&lt;br /&gt;&lt;br /&gt;    With rsAdd&lt;br /&gt;     .ActiveConnection = Add&lt;br /&gt;     .CursorType = adOpenStatic&lt;br /&gt;     .CursorLocation = adUseServer&lt;br /&gt;     .LockType = adLockOptimistic&lt;br /&gt;     .Source = AddSQL&lt;br /&gt;     .Open&lt;br /&gt;    End With&lt;br /&gt;        rsAdd.AddNew&lt;br /&gt;        rsAdd(&amp;quot;InvoiceNo&amp;quot;) = CboCheckinvoice.Text&lt;br /&gt;        rsAdd(&amp;quot;ChargeCode&amp;quot;) = CboCharge.Text&lt;br /&gt;        rsAdd(&amp;quot;Quantity&amp;quot;) = TxtQuantity.Text&lt;br /&gt;        rsAdd(&amp;quot;UnitPrice&amp;quot;) = TxtPrice.Text&lt;br /&gt;        rsAdd.Update&lt;br /&gt;    End If&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;[addedon]November 24, 2008, 4:28 pm[/addedon]i attempt writed some code, but still unsuccess.&lt;br /&gt;can everyone refer to my code and advise on this issue?&lt;br /&gt;Thanks.&lt;br /&gt;Below is the code write by myself.&lt;br /&gt;&lt;br /&gt;[addedon]November 24, 2008, 5:35 pm[/addedon]&lt;br /&gt;come out error &amp;quot;type mismatch&amp;quot;&lt;br /&gt;the code in FormSave as below:&lt;br /&gt;&lt;br /&gt;Private Sub CmdSave_Click()&lt;br /&gt;&lt;br /&gt;&amp;#39;Dim bIsNew As Boolean&lt;br /&gt;&amp;#39;Dim iOpt As Integer&lt;br /&gt;Dim intResponse As Integer&lt;br /&gt;Dim Dsave As clsPayment&lt;br /&gt;Set Dsave = New clsPayment&lt;br /&gt;&lt;br /&gt;        If TxtQuantity.Text = &amp;quot;&amp;quot; Or CboCheckinvoice.Text = &amp;quot;&amp;quot; Or CboCharge.Text = &amp;quot;&amp;quot; Then&lt;br /&gt;            MsgBox &amp;quot;The Data field must not be blank.&amp;quot;, vbExclamation + vbOKOnly, &amp;quot;Warning&amp;quot;&lt;br /&gt;        Else&lt;br /&gt;            intResponse = MsgBox(&amp;quot;Are you sure you want add the information in Invoice Detail?&amp;quot;, vbYesNo + vbQuestion + vbDefaultButton2, &amp;quot;Confrim&amp;quot;)&lt;br /&gt;            If intResponse = vbYes Then&lt;br /&gt;                    With Dsave&lt;br /&gt;                    .InvoiceNo = CboCheckinvoice.Text&lt;br /&gt;                    .ChargeCode = CboCharge.Text   &amp;lt;&amp;lt;&amp;lt;error here: &amp;quot;type mismatch&amp;quot;&lt;br /&gt;                    .Quantity = TxtQuantity.Text&lt;br /&gt;                    .UnitPrice = TxtPrice.Text&lt;br /&gt;                    End With&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;in Class Module:&lt;br /&gt;&lt;br /&gt;Dim sInvoiceNo As String&lt;br /&gt;Dim sChargeCode As String&lt;br /&gt;Dim sQuantity As String&lt;br /&gt;Dim sUnitPrice As String&lt;br /&gt;&lt;br /&gt;&amp;#39;Insert or Update record&lt;br /&gt;Function Dsave() As Boolean&lt;br /&gt;&lt;br /&gt; Dim sSQL As String&lt;br /&gt;    &lt;br /&gt;    With rsAdd&lt;br /&gt;        &lt;br /&gt;        Call .Add(&amp;quot;InvoiceNo&amp;quot;, CboCheckinvoice.Text)&lt;br /&gt;        Call .Add(&amp;quot;ChargeCode&amp;quot;, CboCharge.Text)&lt;br /&gt;        Call .Add(&amp;quot;Quantity&amp;quot;, TxtQuantity.Text)&lt;br /&gt;        Call .Add(&amp;quot;UnitPrice&amp;quot;, TxtPrice.Text)&lt;br /&gt;    &lt;br /&gt;        sSQL = &amp;quot;UPDATE InvoiceDetails SET InvoiceNo= &amp;quot; &amp;amp; CboCheckinvoice.Text &amp;amp; &amp;quot;, ChargeCode= &amp;quot; &amp;amp; CboCharge.Text &amp;amp; &amp;quot;, Quantity= &amp;quot; &amp;amp; TxtQuantity.Text &amp;amp; &amp;quot;, UnitPrice= &amp;quot; &amp;amp; TxtPrice.Text &amp;amp; &amp;quot;&amp;quot;&lt;br /&gt;    &lt;br /&gt;    &amp;#39;Save items&lt;br /&gt;        rsAdd.AddNew&lt;br /&gt;        rsAdd(&amp;quot;InvoiceNo&amp;quot;) = CboCheckinvoice.Text&lt;br /&gt;        rsAdd(&amp;quot;ChargeCode&amp;quot;) = CboCharge.Text&lt;br /&gt;        rsAdd(&amp;quot;Quantity&amp;quot;) = TxtQuantity.Text&lt;br /&gt;        rsAdd(&amp;quot;UnitPrice&amp;quot;) = TxtPrice.Text&lt;br /&gt;        rsAdd.Update&lt;br /&gt;    &lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Property Get InvoiceNo() As Double&lt;br /&gt;    InvoiceNo = sInvoiceNo&lt;br /&gt;End Property&lt;br /&gt;Property Let InvoiceNo(ByVal vData As Double)&lt;br /&gt;    sInvoiceNo = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get ChargeCode() As Double&lt;br /&gt;    ChargeCode = sChargeCode&lt;br /&gt;End Property&lt;br /&gt;Property Let ChargeCode(ByVal vData As Double)&lt;br /&gt;    sChargeCode = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get Quantity() As Double&lt;br /&gt;    Quantity = sQuantity&lt;br /&gt;End Property&lt;br /&gt;Property Let Quantity(ByVal vData As Double)&lt;br /&gt;    sQuantity = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get UnitPrice() As Double&lt;br /&gt;    UnitPrice = sUnitPrice&lt;br /&gt;End Property&lt;br /&gt;Property Let UnitPrice(ByVal vData As Double)&lt;br /&gt;    sUnitPrice = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;[addedon]November 24, 2008, 5:45 pm[/addedon]&lt;!--QuoteBegin-firef0x+Nov 24 2008, 11:59 AM--&gt;&lt;div class='quotetop'&gt;QUOTE(firef0x &amp;#064; Nov 24 2008, 11:59 AM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;Below is the save function i write.&lt;br /&gt;But my Lecturer want me using class module to save data.&lt;br /&gt;can someone help on this issue?&lt;br /&gt;&lt;br /&gt;Private Sub CmdSave_Click()&lt;br /&gt;&lt;br /&gt;If TxtQuantity.Text = &amp;quot;&amp;quot; Or CboCheckinvoice.Text = &amp;quot;&amp;quot; Or CboCharge.Text = &amp;quot;&amp;quot; Then&lt;br /&gt;    MsgBox &amp;quot;The Data field must not be blank.&amp;quot;, vbExclamation + vbOKOnly, &amp;quot;Warning&amp;quot;&lt;br /&gt;Else&lt;br /&gt;    intResponse = MsgBox(&amp;quot;Are you sure you want add the information in Invoice Detail?&amp;quot;, vbYesNo + vbQuestion + vbDefaultButton2, &amp;quot;Confrim&amp;quot;)&lt;br /&gt;    If intResponse = vbYes Then&lt;br /&gt;&amp;#39;       Save / Update command button&lt;br /&gt;       Set rsAdd = New ADODB.Recordset&lt;br /&gt;       Set Add = New ADODB.Connection&lt;br /&gt;&lt;br /&gt;Addconnect = &amp;quot;Provider=SQLOLEDB;Data Source=max;Initial Catalog=tutorial&amp;quot;&lt;br /&gt;       Add.Open Addconnect, &amp;quot;sa&amp;quot;, &amp;quot;sa&amp;quot;&lt;br /&gt;       AddSQL = &amp;quot;SELECT * FROM InvoiceDetails&amp;quot;&lt;br /&gt;&lt;br /&gt;    With rsAdd&lt;br /&gt;     .ActiveConnection = Add&lt;br /&gt;     .CursorType = adOpenStatic&lt;br /&gt;     .CursorLocation = adUseServer&lt;br /&gt;     .LockType = adLockOptimistic&lt;br /&gt;     .Source = AddSQL&lt;br /&gt;     .Open&lt;br /&gt;    End With&lt;br /&gt;        rsAdd.AddNew&lt;br /&gt;        rsAdd(&amp;quot;InvoiceNo&amp;quot;) = CboCheckinvoice.Text&lt;br /&gt;        rsAdd(&amp;quot;ChargeCode&amp;quot;) = CboCharge.Text&lt;br /&gt;        rsAdd(&amp;quot;Quantity&amp;quot;) = TxtQuantity.Text&lt;br /&gt;        rsAdd(&amp;quot;UnitPrice&amp;quot;) = TxtPrice.Text&lt;br /&gt;        rsAdd.Update&lt;br /&gt;    End If&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;[addedon]November 24, 2008, 4:28 pm[/addedon]i attempt writed some code, but still unsuccess.&lt;br /&gt;can everyone refer to my code and advise on this issue?&lt;br /&gt;Thanks.&lt;br /&gt;Below is the code write by myself.&lt;br /&gt;&lt;br /&gt;[addedon]November 24, 2008, 5:35 pm[/addedon]&lt;br /&gt;come out error &amp;quot;type mismatch&amp;quot;&lt;br /&gt;the code in FormSave as below:&lt;br /&gt;&lt;br /&gt;Private Sub CmdSave_Click()&lt;br /&gt;&lt;br /&gt;&amp;#39;Dim bIsNew As Boolean&lt;br /&gt;&amp;#39;Dim iOpt As Integer&lt;br /&gt;Dim intResponse As Integer&lt;br /&gt;Dim Dsave As clsPayment&lt;br /&gt;Set Dsave = New clsPayment&lt;br /&gt;&lt;br /&gt;        If TxtQuantity.Text = &amp;quot;&amp;quot; Or CboCheckinvoice.Text = &amp;quot;&amp;quot; Or CboCharge.Text = &amp;quot;&amp;quot; Then&lt;br /&gt;            MsgBox &amp;quot;The Data field must not be blank.&amp;quot;, vbExclamation + vbOKOnly, &amp;quot;Warning&amp;quot;&lt;br /&gt;        Else&lt;br /&gt;            intResponse = MsgBox(&amp;quot;Are you sure you want add the information in Invoice Detail?&amp;quot;, vbYesNo + vbQuestion + vbDefaultButton2, &amp;quot;Confrim&amp;quot;)&lt;br /&gt;            If intResponse = vbYes Then&lt;br /&gt;                    With Dsave&lt;br /&gt;                    .InvoiceNo = CboCheckinvoice.Text&lt;br /&gt;                    .ChargeCode = CboCharge.Text   &amp;lt;&amp;lt;&amp;lt;error here: &amp;quot;type mismatch&amp;quot;&lt;br /&gt;                    .Quantity = TxtQuantity.Text&lt;br /&gt;                    .UnitPrice = TxtPrice.Text&lt;br /&gt;                    End With&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;in Class Module:&lt;br /&gt;&lt;br /&gt;Dim sInvoiceNo As String&lt;br /&gt;Dim sChargeCode As String&lt;br /&gt;Dim sQuantity As String&lt;br /&gt;Dim sUnitPrice As String&lt;br /&gt;&lt;br /&gt;&amp;#39;Insert or Update record&lt;br /&gt;Function Dsave() As Boolean&lt;br /&gt;&lt;br /&gt; Dim sSQL As String&lt;br /&gt;    &lt;br /&gt;    With rsAdd&lt;br /&gt;        &lt;br /&gt;        Call .Add(&amp;quot;InvoiceNo&amp;quot;, CboCheckinvoice.Text)&lt;br /&gt;        Call .Add(&amp;quot;ChargeCode&amp;quot;, CboCharge.Text)&lt;br /&gt;        Call .Add(&amp;quot;Quantity&amp;quot;, TxtQuantity.Text)&lt;br /&gt;        Call .Add(&amp;quot;UnitPrice&amp;quot;, TxtPrice.Text)&lt;br /&gt;    &lt;br /&gt;        sSQL = &amp;quot;UPDATE InvoiceDetails SET InvoiceNo= &amp;quot; &amp;amp; CboCheckinvoice.Text &amp;amp; &amp;quot;, ChargeCode= &amp;quot; &amp;amp; CboCharge.Text &amp;amp; &amp;quot;, Quantity= &amp;quot; &amp;amp; TxtQuantity.Text &amp;amp; &amp;quot;, UnitPrice= &amp;quot; &amp;amp; TxtPrice.Text &amp;amp; &amp;quot;&amp;quot;&lt;br /&gt;    &lt;br /&gt;    &amp;#39;Save items&lt;br /&gt;        rsAdd.AddNew&lt;br /&gt;        rsAdd(&amp;quot;InvoiceNo&amp;quot;) = CboCheckinvoice.Text&lt;br /&gt;        rsAdd(&amp;quot;ChargeCode&amp;quot;) = CboCharge.Text&lt;br /&gt;        rsAdd(&amp;quot;Quantity&amp;quot;) = TxtQuantity.Text&lt;br /&gt;        rsAdd(&amp;quot;UnitPrice&amp;quot;) = TxtPrice.Text&lt;br /&gt;        rsAdd.Update&lt;br /&gt;    &lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Property Get InvoiceNo() As Double&lt;br /&gt;    InvoiceNo = sInvoiceNo&lt;br /&gt;End Property&lt;br /&gt;Property Let InvoiceNo(ByVal vData As Double)&lt;br /&gt;    sInvoiceNo = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get ChargeCode() As Double&lt;br /&gt;    ChargeCode = sChargeCode&lt;br /&gt;End Property&lt;br /&gt;Property Let ChargeCode(ByVal vData As Double)&lt;br /&gt;    sChargeCode = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get Quantity() As Double&lt;br /&gt;    Quantity = sQuantity&lt;br /&gt;End Property&lt;br /&gt;Property Let Quantity(ByVal vData As Double)&lt;br /&gt;    sQuantity = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get UnitPrice() As Double&lt;br /&gt;    UnitPrice = sUnitPrice&lt;br /&gt;End Property&lt;br /&gt;Property Let UnitPrice(ByVal vData As Double)&lt;br /&gt;    sUnitPrice = vData&lt;br /&gt;End Property&lt;br /&gt;[right][snapback]21661461[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;br /&gt;any1 can help?&lt;br /&gt;&lt;br /&gt;[addedon]November 24, 2008, 5:53 pm[/addedon]I found out the solution.&lt;br /&gt;this problem already solved.&lt;br /&gt;everyone can refer to the code as below:-&lt;br /&gt;IN FormSave:&lt;br /&gt;&lt;br /&gt;Private Sub CmdSave_Click()&lt;br /&gt;&lt;br /&gt;Dim intResponse As Integer&lt;br /&gt;Dim Dsave As clsPayment&lt;br /&gt;Set Dsave = New clsPayment&lt;br /&gt;&lt;br /&gt;        If TxtQuantity.Text = &amp;quot;&amp;quot; Or CboCheckinvoice.Text = &amp;quot;&amp;quot; Or CboCharge.Text = &amp;quot;&amp;quot; Then&lt;br /&gt;            MsgBox &amp;quot;The Data field must not be blank.&amp;quot;, vbExclamation + vbOKOnly, &amp;quot;Warning&amp;quot;&lt;br /&gt;        Else&lt;br /&gt;            intResponse = MsgBox(&amp;quot;Are you sure you want add the information in Invoice Detail?&amp;quot;, vbYesNo + vbQuestion + vbDefaultButton2, &amp;quot;Confrim&amp;quot;)&lt;br /&gt;            If intResponse = vbYes Then&lt;br /&gt;            &lt;br /&gt;                Set rsAdd = New ADODB.Recordset&lt;br /&gt;                Set Add = New ADODB.Connection&lt;br /&gt;&lt;br /&gt;                Addconnect = &amp;quot;Provider=SQLOLEDB;Data Source=mas;Initial Catalog=tutorial&amp;quot;&lt;br /&gt;                Add.Open Addconnect, &amp;quot;sa&amp;quot;, &amp;quot;sa&amp;quot;&lt;br /&gt;&lt;br /&gt;                AddSQL = &amp;quot;SELECT * FROM InvoiceDetails&amp;quot;&lt;br /&gt;                With rsAdd&lt;br /&gt;                    .ActiveConnection = Add&lt;br /&gt;                    .CursorType = adOpenStatic&lt;br /&gt;                    .CursorLocation = adUseServer&lt;br /&gt;                    .LockType = adLockOptimistic&lt;br /&gt;                    .Source = AddSQL&lt;br /&gt;                    .Open&lt;br /&gt;                End With&lt;br /&gt;                &lt;br /&gt;                    With Dsave&lt;br /&gt;                    .InvoiceNo = CboCheckinvoice.Text&lt;br /&gt;                    .ChargeCode = CboCharge.Text&lt;br /&gt;                    .Quantity = TxtQuantity.Text&lt;br /&gt;                    .UnitPrice = TxtPrice.Text&lt;br /&gt;                    End With&lt;br /&gt;                    &lt;br /&gt;                    rsAdd.AddNew&lt;br /&gt;                    rsAdd(&amp;quot;InvoiceNo&amp;quot;) = CboCheckinvoice.Text&lt;br /&gt;                    rsAdd(&amp;quot;ChargeCode&amp;quot;) = CboCharge.Text&lt;br /&gt;                    rsAdd(&amp;quot;Quantity&amp;quot;) = TxtQuantity.Text&lt;br /&gt;                    rsAdd(&amp;quot;UnitPrice&amp;quot;) = TxtPrice.Text&lt;br /&gt;                    rsAdd.Update&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Clsee Module (clsPayment):&lt;br /&gt;&lt;br /&gt;Dim sInvoiceNo As String&lt;br /&gt;Dim sChargeCode As String&lt;br /&gt;Dim sQuantity As String&lt;br /&gt;Dim sUnitPrice As String&lt;br /&gt;&lt;br /&gt;&amp;#39;Insert or Update record&lt;br /&gt;Function Dsave() As Boolean&lt;br /&gt;&lt;br /&gt; Dim sSQL As String&lt;br /&gt;    &lt;br /&gt;    With rsAdd&lt;br /&gt;        &lt;br /&gt;        Call .Add(&amp;quot;InvoiceNo&amp;quot;, CboCheckinvoice.Text)&lt;br /&gt;        Call .Add(&amp;quot;ChargeCode&amp;quot;, CboCharge.Text)&lt;br /&gt;        Call .Add(&amp;quot;Quantity&amp;quot;, TxtQuantity.Text)&lt;br /&gt;        Call .Add(&amp;quot;UnitPrice&amp;quot;, TxtPrice.Text)&lt;br /&gt;    &lt;br /&gt;        sSQL = &amp;quot;UPDATE InvoiceDetails SET InvoiceNo= &amp;quot; &amp;amp; CboCheckinvoice.Text &amp;amp; &amp;quot;, ChargeCode= &amp;quot; &amp;amp; CboCharge.Text &amp;amp; &amp;quot;, Quantity= &amp;quot; &amp;amp; TxtQuantity.Text &amp;amp; &amp;quot;, UnitPrice= &amp;quot; &amp;amp; TxtPrice.Text &amp;amp; &amp;quot;&amp;quot;&lt;br /&gt;    &lt;br /&gt;    &amp;#39;Save items&lt;br /&gt;        rsAdd.AddNew&lt;br /&gt;        rsAdd(&amp;quot;InvoiceNo&amp;quot;) = CboCheckinvoice.Text&lt;br /&gt;        rsAdd(&amp;quot;ChargeCode&amp;quot;) = CboCharge.Text&lt;br /&gt;        rsAdd(&amp;quot;Quantity&amp;quot;) = TxtQuantity.Text&lt;br /&gt;        rsAdd(&amp;quot;UnitPrice&amp;quot;) = TxtPrice.Text&lt;br /&gt;        rsAdd.Update&lt;br /&gt;    &lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Property Get InvoiceNo() As String&lt;br /&gt;    InvoiceNo = sInvoiceNo&lt;br /&gt;End Property&lt;br /&gt;Property Let InvoiceNo(ByVal vData As String)&lt;br /&gt;    sInvoiceNo = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get ChargeCode() As String&lt;br /&gt;    ChargeCode = sChargeCode&lt;br /&gt;End Property&lt;br /&gt;Property Let ChargeCode(ByVal vData As String)&lt;br /&gt;    sChargeCode = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get Quantity() As String&lt;br /&gt;    Quantity = sQuantity&lt;br /&gt;End Property&lt;br /&gt;Property Let Quantity(ByVal vData As String)&lt;br /&gt;    sQuantity = vData&lt;br /&gt;End Property&lt;br /&gt;&lt;br /&gt;Property Get UnitPrice() As String&lt;br /&gt;    UnitPrice = sUnitPrice&lt;br /&gt;End Property&lt;br /&gt;Property Let UnitPrice(ByVal vData As String)&lt;br /&gt;    sUnitPrice = vData&lt;br /&gt;End Property</description>
            <author>firef0x</author>
            <category>Codemasters</category>
            <pubDate>Mon, 24 Nov 2008 11:59:06 +0800</pubDate>
        </item>
        <item>
            <title>how to show mssql data in vb6 list view</title>
            <link>http://forum.lowyat.net/topic/854866</link>
            <description>Now i using Flexgrid the show the mssql data, but my lecturer want me use listview. but i poor in listview, so can someone teach me how to do on this?&lt;br /&gt;below is the code i using to show data. please refer and advise by the code i  writed. thank you.&lt;br /&gt;&lt;br /&gt;Private Sub Invoice_Click()&lt;br /&gt;&amp;#39; show Customer detail&lt;br /&gt;Set rsinfo = New ADODB.Recordset&lt;br /&gt;Set coninfo = New ADODB.Connection&lt;br /&gt;&lt;br /&gt;strconnect1 = &amp;quot;Provider=SQLOLEDB;Data Source=mas;Initial Catalog=tutorial&amp;quot;&lt;br /&gt;coninfo.Open strconnect1, &amp;quot;sa&amp;quot;, &amp;quot;sa&amp;quot;&lt;br /&gt;&lt;br /&gt;infoSQL = &amp;quot;SELECT InvoiceMaster.*, Customer.* FROM InvoiceMaster INNER JOIN Customer ON InvoiceMaster.CustomerCode = Customer.CustomerCode WHERE InvoiceNo =&amp;#39;&amp;quot; &amp;amp; Invoice.Text &amp;amp; &amp;quot;&amp;#39;&amp;quot;&lt;br /&gt;With rsinfo&lt;br /&gt;     .ActiveConnection = coninfo&lt;br /&gt;     .CursorType = adOpenStatic&lt;br /&gt;     .CursorLocation = adUseServer&lt;br /&gt;     .LockType = adLockOptimistic&lt;br /&gt;     .Source = infoSQL&lt;br /&gt;     .Open&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;CustName.Text = rsinfo.Fields(4)&lt;br /&gt;Address.Text = rsinfo.Fields(5) + rsinfo.Fields(6) + rsinfo.Fields(7) + rsinfo.Fields(8)&lt;br /&gt;Date.Text = rsinfo.Fields(1)&lt;br /&gt;&lt;br /&gt;&amp;#39; Show Data Grid&lt;br /&gt;Set rsdata = New ADODB.Recordset&lt;br /&gt;Set condata = New ADODB.Connection&lt;br /&gt;strconnect2 = &amp;quot;Provider=SQLOLEDB;Data Source=mas;Initial Catalog=tutorial&amp;quot;&lt;br /&gt;condata.Open strconnect2, &amp;quot;sa&amp;quot;, &amp;quot;sa&amp;quot;&lt;br /&gt;dataSQL = &amp;quot;SELECT InvoiceDetails.InvoiceNo, InvoiceDetails.ChargeCode, InvoiceDetails.Quantity, ChargeCode.Description, ChargeCode.UnitPrice FROM InvoiceDetails INNER JOIN ChargeCode ON InvoiceDetails.ChargeCode = ChargeCode.ChargeCode WHERE InvoiceNo =&amp;#39;&amp;quot; &amp;amp; Invoice.Text &amp;amp; &amp;quot;&amp;#39;&amp;quot;&lt;br /&gt;&lt;br /&gt;With rsdata&lt;br /&gt;     .ActiveConnection = condata&lt;br /&gt;     .CursorType = adOpenStatic&lt;br /&gt;     .CursorLocation = adUseServer&lt;br /&gt;     .LockType = adLockOptimistic&lt;br /&gt;     .Source = dataSQL&lt;br /&gt;     .Open&lt;br /&gt;End With&lt;br /&gt;DisplayRecord dataSQL&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub DisplayRecord(dataSQL As String)&lt;br /&gt;    Dim i As Integer&lt;br /&gt;    Dim j As Currency&lt;br /&gt;    MSHFlexGrid.Row = 1&lt;br /&gt;        If rsdata.RecordCount &amp;gt; 0 Then&lt;br /&gt;            With rsdata&lt;br /&gt;                i = 0&lt;br /&gt;                j = 0&lt;br /&gt;                .MoveFirst&lt;br /&gt;                While Not .EOF&lt;br /&gt;                    If &amp;#33;InvoiceNo &amp;gt;= Invoice.Text Then&lt;br /&gt;                        MSHFlexGrid.Row = MSHFlexGrid.Row + 1&lt;br /&gt;                        i = i + 1&lt;br /&gt;                        MSHFlexGrid.TextMatrix(i, 0) = &amp;#33;ChargeCode&lt;br /&gt;                        MSHFlexGrid.TextMatrix(i, 1) = &amp;#33;Description&lt;br /&gt;                        MSHFlexGrid.TextMatrix(i, 2) = &amp;#33;Quantity&lt;br /&gt;                        MSHFlexGrid.TextMatrix(i, 3) = &amp;#33;UnitPrice&lt;br /&gt;                        MSHFlexGrid.TextMatrix(i, 4) = (&amp;#33;Quantity * &amp;#33;UnitPrice)&lt;br /&gt;                        j = MSHFlexGrid.TextMatrix(i, 4) + j&lt;br /&gt;                    End If&lt;br /&gt;                    .MoveNext&lt;br /&gt;                Wend&lt;br /&gt;            End With&lt;br /&gt;            Total.Text = j&lt;br /&gt;        End If&lt;br /&gt;End Sub</description>
            <author>firef0x</author>
            <category>Codemasters</category>
            <pubDate>Mon, 24 Nov 2008 11:51:45 +0800</pubDate>
        </item>
        <item>
            <title>Vista 64 and HDMI</title>
            <link>http://forum.lowyat.net/topic/787463</link>
            <description>i experience audio lag over hdmi.&lt;br /&gt;&lt;br /&gt;i am using HP2228h which has built in speaker and Gecube HD3870.&lt;br /&gt;&lt;br /&gt;so i just plug in my hdmi cable.&lt;br /&gt;&lt;br /&gt;program notification sound like msn message sound. application sounds is not there.&lt;br /&gt;&lt;br /&gt;i have to click repeatedly then the windows sound comes back. application sounds will dissapear again when at slow pace.&lt;br /&gt;&lt;br /&gt;the application sound will only go back to normal which means i can hear every sound when i open music.&lt;br /&gt;that is when i listen to continuous sound.&lt;br /&gt;&lt;br /&gt;may i know what causing the lag?&lt;br /&gt;&lt;br /&gt;edit&lt;br /&gt;&lt;br /&gt;the sound will ONLY comes out when there is continuous audio signal.&lt;br /&gt;&lt;br /&gt;edit&lt;br /&gt;&lt;br /&gt;update&lt;br /&gt;&lt;br /&gt;the lag gone when i open music player.&lt;br /&gt;is it win vista problem</description>
            <author>firef0x</author>
            <category>Technical Support</category>
            <pubDate>Tue, 09 Sep 2008 20:32:39 +0800</pubDate>
        </item>
        <item>
            <title>memory missing</title>
            <link>http://forum.lowyat.net/topic/782195</link>
            <description>supposely 32bit windows can only detect 3.5GB ram.&lt;br /&gt;&lt;br /&gt;i use gecube HD3870 which suppose has its on board memory.&lt;br /&gt;&lt;br /&gt;when i check computer properties, it shows only 3.25GB&lt;br /&gt;&lt;br /&gt;may i know where the other 250MB ram gone ? &lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:sweat:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sweat.gif' border='0' style='vertical-align:middle' alt='sweat.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>firef0x</author>
            <category>Hardware</category>
            <pubDate>Wed, 03 Sep 2008 15:21:18 +0800</pubDate>
        </item>
        <item>
            <title>foxconn mars and xeon 3110</title>
            <link>http://forum.lowyat.net/topic/781121</link>
            <description>I installed new xeon 3110 to my motherboard.&lt;br /&gt;&lt;br /&gt;everytime on my computer, there is a halt and indicate new cpu installed, change cpu setting.&lt;br /&gt;&lt;br /&gt;may i know where should i change the cpu setting?    &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>firef0x</author>
            <category>Technical Support</category>
            <pubDate>Tue, 02 Sep 2008 10:03:11 +0800</pubDate>
        </item>
    </channel>
</rss>
