473,385 Members | 1,730 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,385 software developers and data experts.

How to automatically save records?

Vs2005, .Net 2.0, vb.Net, Winforms
I have a form with a binding source, a binding navigator, a table adapter
and a dataset (all using sql 2005 same table, to keep it simple)
When the user tries using next, previous, first or last, or closes the form
I would like to automatically detects if any changes were made and if so do
an update. If the update was unsuccessful, user should not be allowed to
navigate nor close the form until problem is resolved.

So questions :
in the binding navigator, how to detect if changes were made, how to prevent
navigation from completing?

Thanks for any help,
Bob


Aug 10 '07 #1
1 2514
Do it manually with SQL. Don't trust databinding as its only included
in vb to help novices learn.

Hope this helps.

Steve

On Aug 10, 10:58 pm, "Robert Dufour" <bduf...@sgiims.comwrote:
Vs2005, .Net 2.0, vb.Net, Winforms
I have a form with a binding source, a binding navigator, a table adapter
and a dataset (all using sql 2005 same table, to keep it simple)
When the user tries using next, previous, first or last, or closes the form
I would like to automatically detects if any changes were made and if so do
an update. If the update was unsuccessful, user should not be allowed to
navigate nor close the form until problem is resolved.

So questions :
in the binding navigator, how to detect if changes were made, how to prevent
navigation from completing?

Thanks for any help,
Bob

Aug 11 '07 #2

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

Similar topics

3
by: Jay | last post by:
Hey there, Is there a way to have php automatically save a file that is being downloaded without having the annoying "Save As.." dialog box that appears? I would like to be able to create a txt...
3
by: Christopher Koh | last post by:
how do you stop Access from saving any changed data in your tables and queries? like i just add or change data on the table/query tables,then click on X (exit)because i have no intention of saving...
11
by: Gary | last post by:
I'm using Access 2002. I have a field called Job No. It is a text (data type). The reason being that there is an "I" in front of each number i.e. I1234 I1235 etc The problem is that when...
5
by: deejayquai | last post by:
Hi I have a list of students undetaking various sports activities. Currently the students are listed in tblGroupMembers and I manually go into a form/subform and allocate each activity for each...
3
by: Iain | last post by:
How do I get a form to automatically refresh once (not continually using a timer). The scenario I have uses a parent table and a child table. (thanks to mmcarthy for indicating better termenology...
12
by: JHNielson | last post by:
This is king of urgent. I am in the middle of system testing and having problems. I have a form where users can update a Mater List of Values. I have a Save, Delete, Add-New, and Forward and...
1
by: sushant2009 | last post by:
Hi , I want to display empty databae table(actually table contains lot of records) to datagrid using dataset and dataadpter. After displaying i will fill new records in datagrid and i will save...
4
by: Michiel Rapati-Kekkonen | last post by:
Is there maybe a trick so that when I make a continuous form, the records fit exactly? Now, without such trick, often the last visible record shows only half and I have to stretch the form...
7
by: canajien | last post by:
How can I get a php page to automatically send all the contents in an email when it is generated? I managed to hack together a script that sends an email, but it will only send the 1st record...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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...

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.