Advertisement
jeqx

code

Apr 3rd, 2020
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.00 KB | None | 0 0
  1.  sql = " insert into [tbl_BillingRecords] ([Patient's ID], [Consultation Fee], [Medicine Fee], [X-Ray Fee], [Lab Services], [Partial Health Check Fees], [Comprehensive Health Check Fees], [Total Fee], [Amount Paid], [Change Amount]) values " &
  2.           "('" & txtPatientIDStaffNurseBillingPage.Text & "' , '" & txtConsultationFeeStaffNurseBillingPage.Text & "'
  3.            , '" & txtMedicineFeesStaffNurseBillingPage.Text & "' , '" & txtXRayStaffNurseBillingPage.Text & "'
  4.            ,'" & txtLabServicesStaffNurseBillingPage.Text & "'  , '" & txtPartialHealthCheckStaffNurseBillingPage.Text & "'
  5.            , '" & txtComprehensiveHealthCheckStaffNurseBillingPage.Text & "' , '" & txtTotalFeeStaffNurseBillingPage.Text & "'
  6.            , '" & txtAmountPaidStaaffNurseBillingPage.Text & "' , '" & txtChangeAmountStaffNurseBillingPage.Text & "')"
  7.         ds = New DataSet
  8.         da = New OleDb.OleDbDataAdapter(sql, con)
  9.         da.Fill(ds, "tbl_BillingRecords")
  10.         MessageBox.Show("Successfully added")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement