|
Hello Muliadi Liem ,
Saya punya seperti ini , sehingga dapat dipanggil
dari beberapa form dan parameternya akan dikirim ke form yang terkait : ( this
procedure will be send parameter to dynamic form )
Sub GetDataPenabung(Kunci,
vForm)
Dim kpp As Recordset Dim vkpp As String Dim statusdata As String Set Db = DBEngine.Workspaces(0).OpenDatabase(LoKasi, False, False, ";pwd=id973354008id") Set rek = Db.OpenRecordset("SELECT * FROM bla", 2) If rek.RecordCount < 1 Then Db.Close status_input = "0" For i = 2 To 7 FrSetor.LbRek(i).Caption = "..............." Next i Pesan = MsgBox("Perhatian : " & vbCrLf & vbCrLf & "Nomor Rekening " & Kunci & " Tidak Ada !", vbInformation, "Data Kosong") With vForm .TxRp.SetFocus .TxRek3.Text = "" .TxRek4.Text = "" .TxRek3.SetFocus End With Else KunciAsli = rek!korek Bsu_awal = rek!saldo_akhir statusdata = rek!status_data With vForm .LbRek(2).Caption = rek!pemilik .LbRek(3).Caption = rek!alamat .LbRek(4).Caption = rek!despenab .LbRek(5).Caption = rek!desdata .LbRek(6).Caption = Format(rek!saldo_akhir, "###,###,##0") .LbRek(7).Caption = Format(rek!saldo_akhir, "###,###,##0") .LbRek(1).Caption = rek!kantor .Text1.Text = rek!saldo_akhir End With status_input = "1" Db.Close If statusdata <> "1" Then Pesan = MsgBox("REKENING TELAH DITUTUP/BLOKIR" & vbCrLf & "TIDAK DAPAT MELAKUKAN TRANSAKSI APAPUN !", vbCritical, "Tidak Aktif") End If End If End Sub
|
Title: .NET:: Parameter pada Modul utk Multi Form
- Re: [Programmer-VB] .NET:: Parameter pada Modul utk Multi For... Darsana
