This document contains code for a form with a combo box that sets text fields for product name and price based on the selected combo box value. It also calculates discount percentages and totals based on price, and includes buttons to process payment, reset the form, and close it.
This document contains code for a form with a combo box that sets text fields for product name and price based on the selected combo box value. It also calculates discount percentages and totals based on price, and includes buttons to process payment, reset the form, and close it.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
This document contains code for a form with a combo box that sets text fields for product name and price based on the selected combo box value. It also calculates discount percentages and totals based on price, and includes buttons to process payment, reset the form, and close it.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
If Combo.Text = "KMP" Then nama.Text = "Komputer" harga.Text = 2500000 ElseIf Combo.Text = "KLK" Then nama.Text = "Kulkas" harga.Text = 1500000 ElseIf Combo.Text = "KRS" Then nama.Text = "Kursi" harga.Text = 1020000 End If If harga.Text > 2000000 Then diskon.Text = "25%" ElseIf harga.Text < 2000000 Then diskon.Text = "15%" End If
If harga.Text > 2000000 Then
total.Text = Val(harga.Text) * 0.25 ElseIf harga.Text < 2000000 Then total.Text = Val(harga.Text) * 0.15 End If