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

Form Wizard Add New bug

I tried to use the dataform wizard to build a from for a simple table which
has a primary key field and two NON primary key fields which do not allow
nulls. The from does not use a grid, it uses controls for each field. If
I click on the generated Add button, I get an error indicating that my first
non primary field does not allow nulls. This happens when the ADDNEW method
is called against the BINDINGCONTEXT.

If I change the table definitions to allow nulls in the non primary key
fields and then regenerate the form it works just fine.

I did a quick Google search and found that this is indeed a bug. I've seen
only one workaround discussed. It involved creating a data row object, using
a NewRow method. Then populating the "no null allowed" fields with default
data and then using the dataset's table's row's ADD method to add this new
row to the table.

Anyone else come across this? What was YOUR solution.

Thanks,
Gary

Nov 20 '05 #1
0 722

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

Similar topics

14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
1
by: Martin Carolan | last post by:
Hi there, I'm having a bit of trouble figuring out how to do this, help would be appreachiated: I have a windows form inside an exe called frmWizard, it is just a wizard interface with some...
1
by: skootr | last post by:
Has anyone seen any COMPLETE bound form examples? By complete, I mean a form that has Add/Edit/Delete capabilities. Every example I've seen on the 'net, in books, and in the VB.Net Resource Kit...
0
by: AZ Jack | last post by:
I have been using a form generated with the Data Form Wizard as a model to generate a standard update form. The wizard uses BindingContext to tie a form to a Database Table. I am using the...
5
by: jcrouse | last post by:
I have an odd issue going on with the calling of my forms. I have an application that has a wizard. The wizard consists of about eight forms that the user makes choices on. Each form has a "Back"...
17
by: Barret Bonden | last post by:
As an old programmer just now looking at VB.net I have a question: How does one simply open one form from another ? I don't mean how does one create a new instance of that form , but rather how...
3
by: Isabelle | last post by:
Hi all I have posted my question in two other newsgroups but was left without an answer or even a hint... My application has a splash screen (a modal form) that kicks out a wizard-like window...
6
by: Bob | last post by:
I've located instruction as to how to add the Data Form Wizard into a VB.NET 2005 project at this location. ...
8
by: gracealic | last post by:
I am new to access can someone tell me how do we send the data entered from an inquiry form to a table. say i have a form which has fields client name client address client phone client...
11
by: casan.mike | last post by:
Hi all, I have a form called "customer_frm" with many records in it. I would like to have a form that has a combobox listing all the customers, and a button that open the "customers_frm" to...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.