472,964 Members | 2,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Handling Empty BindingSources - AddNew by Default?


We have about 70+ forms and our testers keep making the same mistake -
they start typing into the controls before they create a new record.

We have been thinking about how to handle this situation. We thought
1) we would disable the controls until they added a new one or 2) we
would automatically create a new record when the BindingSource.Count
== 0.

We also have code that will automatically check that our users don't
move to the next record without first saving. Only one record is
displayed on the form at a time. If we add a new record when ther
BindingSource.Count == 0, the underlying DataTable will show an Added
row. So, when the user tries to move to the next record, they are
automatically prompted to save this added record. However, if they are
just navigating to a record, they don't intent to add a record every
time and are confused by the prompt to save. This is really annoying,

So, that leaves us with the option of disabling controls until after a
a new record is created. However, this is a monumental task when you
have 70+ forms. And this isn't directly supported, so we would have to
write some code to do it.

We have also thought about not actually adding the row and leaving it
detached. But then we won't know when to actually add the row to the
underlying DataTable.

We are wondering how other groups handle this situation. Is it more
user friendly to disable the controls or automatically create a new
one? If it were truly up to me, I would redesign the forms to avoid
the issue altogether.

Jul 17 '08 #1
0 895

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

Similar topics

by: MickeyBob | last post by:
How does one detect the EOF gracefully? Assuming I have a pickle file containing an unknown number of objects, how can I read (i.e., pickle.load()) until the EOF is encountered without generating...
by: alainpoint | last post by:
I am experimenting with ElementTree and i came accross some (apparently) weird behaviour. I would expect a piece of XML to be read, parsed and written back without corruption (except for the...
by: Phil W | last post by:
Hi all, Am having a bit of trouble with the @@identity field - I probably just have that friday feeling and am missing off something obvious, but the below code brings back am empty identity...
by: Ritz, Bruno | last post by:
hi in java i found that when a method has a throws clause in the definition, callers must either handle the exceptions thrown by the method they are calling or "forward" the exception to the...
by: Asha | last post by:
greetings, i'm converting my value to int value using int32.parse() the problem is that, if its an empty value it returns me an error. what can i do to handle this error besides using a if...
by: Mark | last post by:
Hi... Just noticed something odd... In old ASP if you had query parameters that were invalid for their encoding (broken utf-8, say), ASP would give you back chars representing the 8-bit byte...
by: Aaron Smith | last post by:
I have a form, oddly enough the same one with the expression column that is giving me a headache, and on this form I have a dataset that has a couple of tables in it that are related. If I do a...
by: Leonardo | last post by:
Hi. I'm trying to build my first application with database access using VB 2005. I'm a VB 6 programmer and learning everything again has been challenging. I managed to write a code using some tips...
by: Finn Stampe Mikkelsen | last post by:
Hi I've several times run into to the following event... I've designed a database, using access and Autonumber type field as the primary key. I use DataGridViews with bindingsources and...
by: BobLewiston | last post by:
I need some help with BindingSources. This is what I'm working on: From the C# tutorial at Programmer's Heaven (http://www.programmersheaven.com/2/Les_CSharp_13_p9): private void...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.