You are on page 1of 2

'Memeriksa nomor transaksi pd master transaksi Dim search As New ByIskandar.CariKeDataBaseByIskandar search.

AturPencarianDataBase("DETAILTRANSAKSI", "TANGGALTRANSAKSI", TANG GAL_46110021.Text, 1, Jalan) If search.JumlanBaris > 0 Then MsgBox("the code has been exist") Exit Sub End If 'Proses Penyimpanan ke tabel master transaksi Dim kacci As New OleDb.OleDbCommand kacci = New OleDb.OleDbCommand("insert into DETAILTRANSAKSI (tanggaltran saksi,KODEBARANG,jenistransaksi,UNIT,HARGABELI,TOTALHARGABELI,TOTALUNIT,HARGAPER UNIT,TOTALHARGAPERSEDIAAN) values (#" & TANGGAL_46110021.Value.Month & "/" & TAN GGAL_46110021.Value.Day & "/" & TANGGAL_46110021.Value.Year & "#,'" & KODEBRG_46 110021.Text & "', '" & "PEMBELIANKREDIT" & "', '" & UNIT_46110021.Text & "','" & HARGA_46110021.Text & "','" & Val(HARGA_46110021.Text) * Val(UNIT_46110021.Text ) & "','" & TOTALUNIT_46110021.Text & "','" & HARGAPERUNIT_46110021.Text & "','" & THARGA_46110021.Text & "')", Jalan) Jalan.Open() kacci.ExecuteNonQuery() Jalan.Close() kacci.Dispose() search.AturPencarianDataBase("mastertransaksi", "TANGGALTRANSAKSI", TANG GAL_46110021.Value, 1, Jalan) If search.JumlanBaris > 0 Then MsgBox("the code has been exist") Exit Sub End If 'Proses Penyimpanan ke tabel master transaksi kacci = New OleDb.OleDbCommand("insert into MASTERTRANSAKSI (tanggaltran saksi,JENISTRANSAKSI) values (#" & TANGGAL_46110021.Value.Month & "/" & TANGGAL_ 46110021.Value.Day & "/" & TANGGAL_46110021.Value.Year & "#, '" & "PEMBELIANKRED IT" & "')", Jalan) Jalan.Open() kacci.ExecuteNonQuery() Jalan.Close() kacci.Dispose() search.AturPencarianDataBase("FORMFAKTUR", "NOFAKTUR", NOFAK_46110021.Te xt, 1, Jalan) If search.JumlanBaris > 0 Then MsgBox("the code has been exist") Exit Sub End If 'Proses Penyimpanan ke tabel master transaksi kacci = New OleDb.OleDbCommand("insert into FORMFAKTUR (NOFAKTUR,KODESUP PLIER,KODEBARANG,NAMABARANG,UNIT,HARGASATUAN,TOTALHARGA,TOTALUNIT,HARGAPERUNIT,T OTALHARGAPERSEDIAAN) values ('" & NOFAK_46110021.Text & "','" & SUPP_46110021.Te xt & "','" & KODEBRG_46110021.Text & "','" & NAMABRG_46110021.Text & "','" & UNI T_46110021.Text & "','" & HARGA_46110021.Text & "','" & Val(HARGA_46110021.Text) * Val(UNIT_46110021.Text) & "','" & TOTALUNIT_46110021.Text & "','" & HARGAPERU NIT_46110021.Text & "','" & THARGA_46110021.Text & "')", Jalan) Jalan.Open()

Dispose() search.Dispose() .Value.AKU NPERKIRAAN. "TANGGAL".Text.DEBET) values (#" & TANGGAL_46110021.Close() kacci. Jalan) Jalan.Year & "#.JumlanBaris > 0 Then MsgBox("the code has been exist") Exit Sub End If 'Proses Penyimpanan ke tabel master transaksi kacci = New OleDb. Jalan) If search.Value.ExecuteNonQuery() Jalan.kacci.Value.Text) * Val(UNIT_46110021. Jal an) Jalan.OleDbCommand("insert into JURNALPEMBELIAN (TANGGAL. TANGGAL_46110 021.KREDIT) values (#" & TANGGAL_46110021.Value.Day & "/" & TANGGAL_46110021.Close() kacci.Month & "/" & TANGGAL_4611 0021.Dispose() search.Text) * Val(UNIT_46110021.ExecuteNonQuery() Jalan. TANGGAL_46110 021.Day & "/" & TANGGAL_46110021.ExecuteNonQuery() Jalan.OleDbCommand("insert into JURNALPEMBELIAN (TANGGAL.Open() kacci.AKU NPERKIRAAN.Open() kacci.AturPencarianDataBase("JURNALPEMBELIAN".Text.'" & Val(HARGA_46110021.'" & " HUTANG DAGANG" & "'.'" & Val(HARGA_46110021.Month & "/" & TANGGAL_461 10021.JumlanBaris > 0 Then MsgBox("the code has been exist") Exit Sub End If 'Proses Penyimpanan ke tabel master transaksi kacci = New OleDb.'" & "PERSEDIAAN BARANG DAGANG" & "'. "TANGGAL". Jalan) If search. 1. 1.Year & "#.Text) & "')".Close() kacci.Value.Value.AturPencarianDataBase("JURNALPEMBELIAN".Text) & "')".