473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

pls help me what is wrong with this code is not updating my changes to database

Expand|Select|Wrap|Line Numbers
  1. Dim Dtables1 As New LoanDataSet.Table_StaffLoansApplication_SetUpsDataTable
  2.  
  3.     Dim DAdapters1 As New LoanDataSetTableAdapters.Table_StaffLoansApplication_SetUpsTableAdapter
  4.  
  5.  
  6.                         With Drow
  7.                         .BeginEdit()
  8.                         '.Approve = 0
  9.                         '.Post = 0
  10.                         '.RefNo = Me.TextBoxrefno.Text
  11.                             .RePayAmount = Me.TextBoxrefund.Text
  12.                             .InterestAmount = Me.TextBoxinterrest.Text
  13.                             .RequestedAmount = Me.TextBoxrequestedamt.Text
  14.                             .MonthlyRepay = Me.TextBoxmonthlyrepay.Text
  15.                             .Percentage = ComboBoxpercentage.Text
  16.                             .Period = ComboBoxperiod.Text
  17.                         .Unit = Me.TextBoxunit.Text.Replace("'", "").Trim.ToString
  18.                             .Dept = Me.TextBoxdept.Text.Replace("'", "").Trim.ToString
  19.                             .Description = Me.TextBoxdescription.Text.Replace("'", "").Trim.ToString
  20.                         .Approveby = "Kazeem"
  21.                         .Audit = "Kazeem"
  22.                         .Auditedby = "Kazeem"
  23.                         .StaffId = Sid
  24.                             .StaffName = Sname.Replace("'", "").Trim.ToString
  25.                             .SystemDate = Date.Today
  26.                         ' .SystemIds = Id
  27.                             .TransactionDate = Date.Today
  28.                             .LoanType = Me.ComboBoxloantype.Text
  29.                             .LoantypeId = ComboBoxloantype.SelectedValue
  30.                         .EndEdit()
  31.  
  32.                     End With
  33.  
  34.  
  35.                     DAdapters1.Update(Dtables1)
  36.                     DAdapters1.Adapter.Update(Dtables1)
Oct 4 '13 #1
0 1091

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: LenS | last post by:
If this is the wrong place to post this, please advise better place. Otherwise, I have created the following python program and it works. Running on XP. I think I am now at that stage of learning...
1
by: Luis Esteban Valencia | last post by:
Hello Everyone, Iam an intermediate ASP.Net programmer and iam facing a challenging task. I have a table in MS-SQL server database called 'Members'. The table has following fields... ...
0
by: VBNovice05 | last post by:
I am trying to update a DataSet and DataView without updating the database. I have two datasets. DataSet1: Name Size DataSet2: Name Size Path I want to look...
1
by: rehseboy | last post by:
Hello all! I'm new here... and new to most of the technologies I am trying to string together into a working interface. My background is in C/C++, so this whole web development thing is new to me,...
0
by: Johnny | last post by:
I have a PocketPC mobile application that gets its data from the Sql Server database via a web service. The web service returns a dataset that I need to load into the SqlCe database on the mobile...
12
by: Birky | last post by:
How can I stop a form from updating the database when a user closes the form? I have a form which is used for referencing, additions, and modifications but every time the form is closed with no...
3
by: slinky | last post by:
I have an aspx for with a textbox and a button. The goal is to simply have the user type a message, hit the button and it should append to the XML file. I can open the aspx in the browser with no...
0
by: preeti13 | last post by:
i have a two tables employeenominations and reason if someone storing a data first time it will store into the employeenominations table if name is already exist it will store into the reason table...
3
by: Spoogledrummer | last post by:
Hi it's me again, still working on the sam 5 minute problem so feeling kind of thick now. I've dumped the idea of using a textarea for now and am using a textbox instead but am struggling when it...
1
by: neelsfer | last post by:
When i use this code to count the number of records on display in a specific subform in the "txtRecordNo" field that is open now, it seems to "update" all the time as the cursor changes every second...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.