luthfiagata
New Member
I want to display data in a text box by retrieving data from the database
MsgboxAsync:
Private Sub boxmesage_Click
mdlkoneksi.koneksi
mdlkoneksi.rs = mdlkoneksi.mh.Query("SELECT * FROM jadwalkerja WHERE idkaryawan = '" & Main.idne & "' ")
For i = 0 To mdlkoneksi.rs.RowCount - 1
mdlkoneksi.rs.Position = i
Dim now As Long
Dim HARI, BULAN, TAHUN As String
DateTime.TimeFormat = "dd-MM-yyyy"
HARI = DateTime.GetDayOfMonth(DateTime.Now)
BULAN = DateTime.GetMonth(DateTime.Now)
TAHUN = DateTime.GetYear(DateTime.Now)
Next
mdlkoneksi.rs = mdlkoneksi.mh.Query("SELECT * FROM jadwalkerja WHERE idkaryawan ='" & Main.idne & "' AND tanggaljadwal='" & TAHUN & ":" & BULAN & ":" & HARI & "' ")
MsgboxAsync(mdlkoneksi.rs.GetString2("tanggaljadwal") & " Kode Jadwal : " & mdlkoneksi.rs.GetString2("kodejadwal") , " Info Jadwal Kerja")
End Sub