473,400 Members | 2,145 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,400 software developers and data experts.

Bound Text boxes not updating table

I had originally posted this in another thread, but did not get and results.
I appologize for cross posting but I really would like to get some assistance
with this.

I am new to developing in VB.net so my question may be very elementary with I
need some assistance, so here goes:

I am using vb.net 2003.

I have a form with four bound text boxes. I am using an ODBC data adapter
connecting to an Access database file. I am using the following line of code
in the on Load event of the form to populate the text boxes:

Me.OdbcDataAdapter1.Fill(Me.DsSomeInfo1, "tblSomeInfo")

There is only one record in the table and that record is displayed when i
run the project.

However, when I make any change to any of the four fields, the changes are
not being updated in the "tblSomeInfo" table.

Here is the code that I am using in the click event of a Save Button:

Me.OdbcDataAdapter1.Update(Me.DsTeamsInfo1, "tblTeamsInfo")
Me.Close()
After this code runs (and I have validated that is is running) the changes
to the data in the table has not changed.
--
HTH

Mr B
askdoctoraccess dot com
Dec 10 '07 #1
2 1552
Mr. B.

You tell that you are crossposting, crossposting is sending one message to
more newsgroup in one time. Probably you are multiposting this, at
crossposting everybody can see if there are given answers. Do you have
already answers. Because I don't know what the other answers are, would I in
your case first change the ODBC to OleDB. ODBC is not the nicest to use in
..Net.

And then somewere (by instance before the update.

dim cmb as New OleDBCommandbuilder(OleDBDataAdapter1)

(It is not impossible this works with ODBC as well, however that is so
seldom used in Net that I have no idea if that works).

Cor

"Mr B" <draccess at askdoctoraccess dot comschreef in bericht
news:FC**********************************@microsof t.com...
>I had originally posted this in another thread, but did not get and
results.
I appologize for cross posting but I really would like to get some
assistance
with this.

I am new to developing in VB.net so my question may be very elementary
with I
need some assistance, so here goes:

I am using vb.net 2003.

I have a form with four bound text boxes. I am using an ODBC data adapter
connecting to an Access database file. I am using the following line of
code
in the on Load event of the form to populate the text boxes:

Me.OdbcDataAdapter1.Fill(Me.DsSomeInfo1, "tblSomeInfo")

There is only one record in the table and that record is displayed when i
run the project.

However, when I make any change to any of the four fields, the changes are
not being updated in the "tblSomeInfo" table.

Here is the code that I am using in the click event of a Save Button:

Me.OdbcDataAdapter1.Update(Me.DsTeamsInfo1, "tblTeamsInfo")
Me.Close()
After this code runs (and I have validated that is is running) the changes
to the data in the table has not changed.
--
HTH

Mr B
askdoctoraccess dot com
Dec 11 '07 #2
Cor,

Thanks for the reply. I had been researching this and had found a thread
somewhere that indicated that the OleDBDataAdapter was a much better choice.

I have been able to make things work as I was expecting by making the change.

Thanks again.

Mr B
"Cor Ligthert[MVP]" wrote:
Mr. B.

You tell that you are crossposting, crossposting is sending one message to
more newsgroup in one time. Probably you are multiposting this, at
crossposting everybody can see if there are given answers. Do you have
already answers. Because I don't know what the other answers are, would I in
your case first change the ODBC to OleDB. ODBC is not the nicest to use in
.Net.

And then somewere (by instance before the update.

dim cmb as New OleDBCommandbuilder(OleDBDataAdapter1)

(It is not impossible this works with ODBC as well, however that is so
seldom used in Net that I have no idea if that works).

Cor

"Mr B" <draccess at askdoctoraccess dot comschreef in bericht
news:FC**********************************@microsof t.com...
I had originally posted this in another thread, but did not get and
results.
I appologize for cross posting but I really would like to get some
assistance
with this.

I am new to developing in VB.net so my question may be very elementary
with I
need some assistance, so here goes:

I am using vb.net 2003.

I have a form with four bound text boxes. I am using an ODBC data adapter
connecting to an Access database file. I am using the following line of
code
in the on Load event of the form to populate the text boxes:

Me.OdbcDataAdapter1.Fill(Me.DsSomeInfo1, "tblSomeInfo")

There is only one record in the table and that record is displayed when i
run the project.

However, when I make any change to any of the four fields, the changes are
not being updated in the "tblSomeInfo" table.

Here is the code that I am using in the click event of a Save Button:

Me.OdbcDataAdapter1.Update(Me.DsTeamsInfo1, "tblTeamsInfo")
Me.Close()
After this code runs (and I have validated that is is running) the changes
to the data in the table has not changed.
--
HTH

Mr B
askdoctoraccess dot com
Dec 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paul Edwards | last post by:
I am writing in c# with Visual Studio 2003. I am creating a form that shows one record from a Dataset that is populated with only one record from SQL Server 2000. I am using bound controls, both...
0
by: RPI_alum | last post by:
I've been experiencing some frustrating behavior that I believe may be a MS bug in the Framework. Has anyone else experienced this, know a better way to resolve it, or if it is an actual MS bug ...
1
by: L Mehl | last post by:
On my cmdSaveRecord, I check a couple of fields to confirm that an entry has been made before allowing the Save. I decided to - not put validation rules in table structure, and - validate on...
4
by: vulcaned | last post by:
Hi All, Hopefully I explain this well........ In Access97 I have a form which has a tab control on it, each tab has a sub-form which is bound to its appropriate table(I'll call them 'Detail'...
4
by: gj | last post by:
Hi, I'm trying to update a sql database from a web form using text boxes. I'm trying to learn C# on my own so I am at a complete loss. I created my sql connection, data adapter, dataset and data...
6
by: Frank | last post by:
Hopefully this is the correct group for this message. My previous post to (I assume) a non-.net group was not welcomed. I have a form with 7 text boxes that are all bound to fields of a...
7
by: Andrew McKendrick | last post by:
Hi, I've noticed a bug in VB.NET (latest .NET Framework)... - I have a TabControl on a form with several tabs. - Each tab contains text boxes that are bound to fields in a data source...
9
by: Marianne160 | last post by:
Hi, I know there are various answers to this problem available on the web but none of them seem to work for me. I am using Access 2003 to make a form to look up data from a table. I have so far...
0
by: Mike | last post by:
So here's the situation (.NET 2.0 btw): I have a form, and on this form is a textbox among many other databound controls. The textbox is bound to a field in a data table via the Text property. ...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...

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.