Berikut adalah contoh kode menampilkan data list MSFlexGrid ke TextBox.
Private Sub TableCabdin_Click() Dim kdCabdin As String kdCabdin = Table.TextMatrix(Table.row, 1) rsClose rs rs.Open "select * from t_cabdin where kd_cabdin='" & kdCabdin & "'", cn, adOpenDynamic, adLockOptimistic If Not rs.EOF Then txtKodeCabDin.Text = rs.Fields(0) txtCabdin.Text = rs.Fields(1) cmdEdit.Enabled = True cmdHapus.Enabled = True Else txtKodeCabDin.Text = "" txtCabdin.Text = "" End If
1 komentar:
Thank you very much
Posting Komentar