kereta api

Private Sub cmdabout_Click()
txtkt.Text = “”
txtht.Text = “”
txtjk.Text = “”
txtjb.Text = “”
txtjt.Text = “”
txttotalp.Text = “”
End Sub

Private Sub cmddelete_Click()
Data1.Recordset.Delete
End Sub

Private Sub cmdedit_Click()
Data1.Recordset.Edit
End Sub

Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub CMDPROSES_Click()
Dim kode As String
kode = Left(txtkt.Text, 3)
If kode = “BIM” Or kode = “bim” Then
txtjk.Text = “BIMA”
txtht.Text = “50000”
txtjb.Text = “16.00”
ElseIf kode = “EKO” Or kode = “eko” Then
txtjk.Text = “EKONOMI”
txtht.Text = “35000”
txtjb.Text = “19.00”
ElseIf kode = “MUT” Or kode = “mut” Then
txtjk.Text = “MUTIARA”
txtht.Text = “23000”
txtjb.Text = “17.00”
ElseIf kode = “SEN” Or kode = “sen” Then
txtjk.Text = “SENJA”
txtht.Text = “15000”
txtjb.Text = “20.00”
End If

txtjt.SetFocus
End Sub

Private Sub cmdsave_Click()
Data1.Recordset.AddNew
End Sub

Private Sub TXTJT_keypress(keyascii As Integer)
If keyascii = 13 Then
txttotalp.Text = Val(txtjt.Text) * Val(txtht.Text)
End If
End Sub

Iklan
Pos ini dipublikasikan di Uncategorized. Tandai permalink.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s