Results 1 to 31 of 31

Thread: errr..Stuck?need help as soon as possible

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    errr..Stuck?need help as soon as possible

    hi i am currently super stuck in one of my project as i am still not very used to PROGRAMMING...do not know how to fix the error....relli totally stuck...tried everything....so could some1 help me?

    The project is about a uni cake shop sells a selection of cakes to be bought for eating in and take away. Required to develop a solution that can be use as a point of sales register to record and calculate the amount ddue for individual orders and maintain accumulated totals of each type of cake sold, total number of orders, total revenu and total GST collected to create a summary of the day's sales. Payment is cash. GST charges is 8%, eat in service charge is 10% but not on take away. Extra cream; choc cream, strawberry and blueberry is 0.5 perpacket each.
    Requirements:
    login = 3 times only
    must show boolean flag variable
    multiform for login and order
    Before quiting display summary sales.
    And show number of order.
    require to use sub/fuction
    do not require database

    This is what i have done so far...which is like totally wrong i think..So pls...help me!!i relli reli tried my best...

    The error would most likely be the function on the form2's code


    VB Code:
    1. Function Login(ByVal Username As String, ByVal Password As String) As Boolean
    2.         If Username = "pieuser1" And Password = "piepass1" Then
    3.             Login = True
    4.         End If
    5.     End Function
    6.     'Form1's code
    7.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    8.         Dim secondForm As New Form2         'Instantiate the second form
    9.         Dim username As Boolean
    10.         username = Login(Me.txtuser.Text, Me.txtpassword.Text)
    11.         If username = True Then
    12.                 MessageBox.Show("You've successfully logged In!", _
    13.                 "Verified User", MessageBoxButtons.OK, _
    14.                 MessageBoxIcon.Information)
    15.                 secondForm.ShowDialog() 'Show the second form
    16.         Else
    17.                 MessageBox.Show("Try again - login information is incorrect!", _
    18.                 "Access Denied", MessageBoxButtons.OK, _
    19.                 MessageBoxIcon.Exclamation)
    20.         End If
    21.  
    22.     End Sub
    23. 'Form2's code
    24.     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    25.         Dim total As Double
    26.         Dim sauce, serve, subtotal As Double
    27.         sauce = CDbl(txttomato.Text) * 0.5 + CDbl(txtbbq.Text) * 0.5 + CDbl(txtchilli.Text) * 0.5
    28.         subtotal = ((CDbl(txtmeat.Text) * CDbl(txtp1.Text) + CDbl(txtveggie.Text) * CDbl(txtp2.Text) + CDbl(txtchicken.Text) * CDbl(txtp3.Text) + CDbl(txtcurry.Text) * CDbl(txtp4.Text) + CDbl(txtbeef.Text) * CDbl(txtp5.Text) + CDbl(txtham.Text) * CDbl(txtp6.Text)))
    29.         total = subtotal + sauce
    30.         txttotal.Text = "RM" & Str(total)
    31.  
    32.     End Sub
    33.     Sub serve(ByRef total As Double, ByRef serve As Double)
    34.         If raddine.Checked Then
    35.             serve = 0.1 * total
    36.         End If
    37.         If radtake.Checked Then
    38.             serve = 0.08 * total
    39.         End If
    40.        
    41.     End Sub
    42.  
    43.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    44.         Dim change As Double
    45.         change = CDbl(txtpayment.Text) - CDbl(txttotal.Text)
    46.         txtchange.Text = "RM" & Str(change)
    47.  
    48.     End Sub
    49.  
    50.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    51.         'To clear all the contents in text boxes
    52.         txtmeat.Clear()
    53.         txtveggie.Clear()
    54.         txtchicken.Clear()
    55.         txtcurry.Clear()
    56.         txtbeef.Clear()
    57.         txtcurry.Clear()
    58.         txtham.Clear()
    59.         txtpayment.Clear()
    60.         txtchange.Clear()
    61.         txttomato.Clear()
    62.         txtbbq.Clear()
    63.         txtchilli.Clear()
    64.         txttotal.Clear()
    65.         raddine.Checked = False
    66.         radtake.Checked = False
    67.  
    68.     End Sub
    69.  
    70.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    71.         End
    72.  
    73.     End Sub
    74. End Class
    Last edited by RobDog888; May 13th, 2005 at 08:34 PM. Reason: Added vbcode tags.

  2. #2
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: errr..Stuck?need help as soon as possible

    first thing first..format your code so that it can easily read. use vbcode tags to format your code. [vbcode]'your code here[/vbcode]
    second what is the error?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    i think the error is the function prt

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: errr..Stuck?need help as soon as possible

    But you still havent said what the error is?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    Sub serve(ByRef total As Double, ByRef serve As Double)
    If raddine.Checked Then
    serve = 0.1 * total
    End If
    If radtake.Checked Then
    serve = 0.08 * total
    End If
    i think this prt is the one with error...cos everytime i debug the it....it gives me the total of cakes....and it doesnt include the taxes

  6. #6

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    and also i relli relli duno how to display the summary at the end, which shows the number of order taken, the total revenue etc...and i dunno how to do the prt that it allows the user to try 3 times login

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: errr..Stuck?need help as soon as possible

    Oh so its not an actual error but a miscalculation issue. Your declaring a variable serve but its the same name as your sub serve.
    Plus your not calling serve anywhere at all so it doesnt get added in.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    hmmm...so how i am suppose to fix?cos i relli dunno............do u mind if u could tech me?cos i relli dunno..
    i am pretty dumb at vb.net......

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: errr..Stuck?need help as soon as possible

    Remove the serve variable in Button4_click event. Then add something like...
    total = subtotal + sauce + serve(total)

    Also, change the signature of server so you only pass the total byval and return serve.

    VB Code:
    1. Private Sub serve(ByVal total As Double) As Double
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    ok,...so do i like remove (the one tat i underlined)
    VB Code:
    1. Dim total As Double
    2.         Dim sauce, [U]serve,[/U] subtotal As Double
    3.         sauce = CDbl(txttomato.Text) * 0.5 + CDbl(txtbbq.Text) * 0.5 + CDbl(txtchilli.Text) * 0.5
    4.         subtotal = ((CDbl(txtmeat.Text) * CDbl(txtp1.Text) + CDbl(txtveggie.Text) * CDbl(txtp2.Text) + CDbl(txtchicken.Text) * CDbl(txtp3.Text) + CDbl(txtcurry.Text) * CDbl(txtp4.Text) + CDbl(txtbeef.Text) * CDbl(txtp5.Text) + CDbl(txtham.Text) * CDbl(txtp6.Text)))
    5.        [U] total = subtotal + sauce[/U] change this to total = subtotal + sauce + serve(total)
    6.  
    7.         txttotal.Text = "RM" & Str(total)

  11. #11

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    err neway i have tried the way u ask me to change but it dosnt seem to work..it stills doesnt count the taxes in.....srry if i am relli bothering u..

  12. #12
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: errr..Stuck?need help as soon as possible

    and dont forget to change this one:
    VB Code:
    1. Sub serve(ByRef total As Double, ByRef serve As Double)
    2.         If raddine.Checked Then
    3.             serve = 0.1 * total
    4.         End If
    5.         If radtake.Checked Then
    6.             serve = 0.08 * total
    7.         End If
    8.             End Sub
    9.  
    10. 'to this one.
    11.  
    12. Function serve(ByRef total As Double) as double
    13.         If raddine.Checked Then
    14.             serve = 0.1 * total
    15.         End If
    16.         If radtake.Checked Then
    17.             serve = 0.08 * total
    18.         End If
    19.        Return serve
    20.   End Sub
    21.  
    22. 'and in your button click
    23. Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    24.         Dim total As Double
    25.         Dim sauce, serve, subtotal As Double
    26.         sauce = CDbl(txttomato.Text) * 0.5 + CDbl(txtbbq.Text) * 0.5 + CDbl(txtchilli.Text) * 0.5
    27.         subtotal = ((CDbl(txtmeat.Text) * CDbl(txtp1.Text) + CDbl(txtveggie.Text) * CDbl(txtp2.Text) + CDbl(txtchicken.Text) * CDbl(txtp3.Text) + CDbl(txtcurry.Text) * CDbl(txtp4.Text) + CDbl(txtbeef.Text) * CDbl(txtp5.Text) + CDbl(txtham.Text) * CDbl(txtp6.Text)))
    28.         total = subtotal + sauce
    29.         txttotal.Text = "RM" & Str(total) + serve(total)
    30.  
    31.     End Sub

  13. #13

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    omg thank u sooo much relli apperiate ur help....err one more thing i dunno how to make the login part where user is allow to login 3 times...this is wat i have done...i know we r supposed to use counter but i just dunno where to insert it in my codings..lol....relli relli tahnk uagain

    Function Login(ByVal Username As String, ByVal Password As String) As Boolean
    If Username = "pieuser1" And Password = "piepass1" Then
    Login = True
    End If
    End Function
    'Form1's code
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim secondForm As New Form2 'Instantiate the second form
    Dim username As Boolean
    username = Login(Me.txtuser.Text, Me.txtpassword.Text)
    If username = True Then
    MessageBox.Show("You've successfully logged In!", _
    "Verified User", MessageBoxButtons.OK, _
    MessageBoxIcon.Information)
    secondForm.ShowDialog() 'Show the second form
    Else
    MessageBox.Show("Try again - login information is incorrect!", _
    "Access Denied", MessageBoxButtons.OK, _
    MessageBoxIcon.Exclamation)
    End If

    End Sub

  14. #14
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: errr..Stuck?need help as soon as possible

    ok here's your code.
    try that one if that fits your needs.

    VB Code:
    1. Function Login(ByVal Username As String, ByVal Password As String) As Boolean
    2.         If Username = "pieuser1" And Password = "piepass1" Then
    3.             Login = True
    4.         End If
    5.     End Function
    6.     'Form1's code
    7.     Dim checklogin As Integer = 0
    8.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    9.         If Me.checklogin = 3 Then
    10.             MessageBox.Show("You exceeded the limit to login. Prepare to die!!!.muwahahahah", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    11.             Exit Sub
    12.         End If
    13.         Dim secondForm As New Form2() 'Instantiate the second form
    14.         Dim username As Boolean
    15.         username = Login(Me.txtuser.Text, Me.txtpassword.Text)
    16.         If username = True Then
    17.             MessageBox.Show("You've successfully logged In!", _
    18.             "Verified User", MessageBoxButtons.OK, _
    19.             MessageBoxIcon.Information)
    20.             secondForm.ShowDialog() 'Show the second form
    21.         Else
    22.             Me.checklogin += 1
    23.             MessageBox.Show("Try again - login information is incorrect!", _
    24. "Access Denied", MessageBoxButtons.OK, _
    25. MessageBoxIcon.Exclamation)
    26.         End If
    27.  
    28.     End Sub

  15. #15

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    thank u thank u...it fits exactly my needs!!thank u thank u ....if u didnt help me i think i would have stayed blank forever...

    anyway i am still pretty stuck at this prt...at this prt wen i click on new order button, it will clear the all the textboxes....and at the quit button prt..i am supposed to ask whether th user wan to quit..if no it will go bck to the order form..if yes it will display the summary of the sales such as the demand of the various goods, accumulated totals, accumulated for GST and service charges and also the number of orders for that day in a list box...tis is the prt i am relli stuck as i don't know how to do..so pls help me for the last time in this..thank u

    VB Code:
    1. Private Sub Neworder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    2.         'To clear all the contents in text boxes
    3.         txtmeat.Clear()
    4.         txtveggie.Clear()
    5.         txtchicken.Clear()
    6.         txtcurry.Clear()
    7.         txtbeef.Clear()
    8.         txtcurry.Clear()
    9.         txtham.Clear()
    10.         txtpayment.Clear()
    11.         txtchange.Clear()
    12.         txttomato.Clear()
    13.         txtbbq.Clear()
    14.         txtchilli.Clear()
    15.         txttotal.Clear()
    16.         raddine.Checked = False
    17.         radtake.Checked = False
    18.  
    19.     End Sub
    20.  
    21.     Private Sub quit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    22.         End
    23.  
    24.     End Sub
    25. End Class

  16. #16
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: errr..Stuck?need help as soon as possible

    in your quit button click event put this one.
    VB Code:
    1. If MessageBox.Show("Are you sure you want to quit using illegal drugs?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.No Then
    2.             'do your thing here
    3.             'put your code here in displaying the summary of your sales
    4.  
    5.         End If
    6.  
    7. 'sorry i can't do all things for you..i have work to do here..
    8. 'maybe next time

  17. #17

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    ohok understand..u have alredi helped me enugh..thank u so much again...relli srry to bother ya

  18. #18
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: errr..Stuck?need help as soon as possible

    no problem.

  19. #19

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    anyway i am still pretty stuck at this prt...at this prt wen i click on new order button, it will clear the all the textboxes and as it clear the order it records it in the summary of the sales such as the demand of the various goods, accumulated totals, accumulated for GST and service charges and also the number of orders for that day in a list box...and each time wen i press new order it will total up as well in the sumaary box(listbox)tis is the prt i am relli stuck as i don't know how to do..so pls help me anyone..thank u

    visual basic code:--------------------------------------------------------------------------------Private Sub Neworder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    'To clear all the contents in text boxes
    txtmeat.Clear()
    txtveggie.Clear()
    txtchicken.Clear()
    txtcurry.Clear()
    txtbeef.Clear()
    txtcurry.Clear()
    txtham.Clear()
    txtpayment.Clear()
    txtchange.Clear()
    txttomato.Clear()
    txtbbq.Clear()
    txtchilli.Clear()
    txttotal.Clear()
    raddine.Checked = False
    radtake.Checked = False

    End Sub

    End Class
    Last edited by Dingdong; May 14th, 2005 at 04:02 AM.

  20. #20

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    i am seriously stuck...i relli dunno how to do tat part...wish some1 would help me again..

  21. #21
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: errr..Stuck?need help as soon as possible

    Your code clears the controls, but what is left thats the issue?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  22. #22

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    but i am supposed to show the whole business summary...wat i am trying to do is tat wen the user press on the new order, it clears of the recent orders, and then it will record it in to the listbox, which is the whole summary business transaction...so at the end this listbox will show all the no. of orders it has, the total GST and service taxes accumulated, the total cost, and the number of meat, veggie etc tat has been sold......i have already tried and yet failed...ask my friend and everybody i know..and it turns out they don't know.........so my last option is to ask from u guys..................so please help me......

  23. #23
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: errr..Stuck?need help as soon as possible

    Well it a bit hard to understand what you program needs when I cant see it, but is that all the code?

    Its easier to break it down into smaller manageable tasks. So what would be the first step? Clearing the listbox after the textboxes are cleared?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  24. #24

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    ok ere issit..i attach it...hope u can help me
    Last edited by Dingdong; May 15th, 2005 at 07:30 AM.

  25. #25
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: errr..Stuck?need help as soon as possible

    I dont have winrar so I cant view all the code. What is the first action needing after the clearing of the textboxes?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  26. #26

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    i have changed zip file for ya..its like wen the user click on the new order..it will clear the orders then the data will be display in the listbox(which is the business summary)
    Last edited by Dingdong; May 14th, 2005 at 09:39 AM.

  27. #27

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    so pls helpppp anyone..... :'(

  28. #28
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: errr..Stuck?need help as soon as possible

    I'm back, loooking at the zip now.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  29. #29
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: errr..Stuck?need help as soon as possible

    Ok, first errors I got are if you dont have a number in all textboxes, when it tries to calculate the total it crashes. So we need to
    only add the boxes that are filled in or have them always have a zero value as a default.

    What would be a sample text entry in the listbox?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  30. #30

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible

    yeah i realised tat to...

    well the sample text entry in the textbox would be the business sumarrr for the day
    it would look something like tis:
    business summary of the day:
    number of order for the day=

    demand for each pie:
    meat =
    veggie =
    etc
    total pies demanded =

    taxes:
    GST=
    Service Tax:
    total taxes:

    total accumulated:
    total sale of the day =
    Last edited by Dingdong; May 14th, 2005 at 10:40 PM.

  31. #31

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    27

    Re: errr..Stuck?need help as soon as possible(Done)

    ok phew..manage to fix the errors nad mistakes..thanks for all ur help!
    Last edited by Dingdong; May 15th, 2005 at 12:01 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width