mengubah tanggal dengan combo box

tanggal
Private Sub Combo2_Click()
If Val(Combo1) Mod 4 = 0 Then
blnfeb = 29
Else
blnfeb = 28
End If
Select Case Combo2
Case “february”: bln = blnfeb
Case “januari”, “maret”, “mei”, “juli”, “agustus”, “oktober”, “desember”: bln = 31
Case Else: bln = 30
End Select
For tgl = 1 To bln
Combo3.AddItem Val(tgl)
Next tgl
End Sub

Private Sub Form_Load()
For i = 1980 To 2010
Combo1.AddItem Val(i)
Next i
Combo2.AddItem “januari”
Combo2.AddItem “februari”
Combo2.AddItem “maret”
Combo2.AddItem “april”
Combo2.AddItem “mei”
Combo2.AddItem “juni”
Combo2.AddItem “juli”
Combo2.AddItem “agustus”
Combo2.AddItem “september”
Combo2.AddItem “oktober”
Combo2.AddItem “november”
Combo2.AddItem “desember”
End Sub

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 )

Gambar Twitter

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

Foto Facebook

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

Foto Google+

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

Connecting to %s