473,387 Members | 1,891 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.

Hey, VB Team. VS.NET Dataform wizard doesn't gen correct code!

Has anyone noticed that the VS Dataform wizard doesn't gen correctly
DISPLAYED results if you have an IDENTITY key defined for your table
(normal stuff, IMHO)? If your dataset is empty the first "Add" will display
TWO records on the resulting form. This is because they are creating a
'temporary' dataset with the changes; i.e., new record in this case, and
then they MERGE it into the existing dataset, which has a new row defined by
the 'currencymanager.AddNew' that was created when you pressed the Add
button (if you requested a single record format). In case you requested the
datagrid you get the bogus record displayed when you click 'Update.'

This behavior continues even after the first record; i.e., an additional
record is displayed. Of course, since the MERGE of the new record never
finds a record to merge into since it has a new IDENTITY defined for it,
which doesn't exist in the local dataset.

I've got to think that this has been pointed out to MS, or am I the only one
that has tried to use the wizard? (Why do I use it? I like it for tables
with LOTS of
fields. Saves time (?) )

Larry Woods

Nov 21 '05 #1
0 1067

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

Similar topics

1
by: Peter | last post by:
Hello, Thanks for reviewing my question. I am getting the following error when trying to create a form using the DataForm Wizard: "The following error occurred: Value cannot be null. ...
1
by: Omer kamal | last post by:
Dear all, I am not able to access some fields of my table in .mdb database, which was created by some one else. when I reach to the wizard step where I can choose fields to make relations, I...
1
by: Steve Teeples | last post by:
I've never done database code in C#. :( I've connected a dataform to a database and can reference all the items in the table. I want to filter the elements though based upon the value of a...
1
by: msmcg | last post by:
I built a dataform using the VB.net wizard. I have two tables, with one relation, Parent to Child, linked on one common key. The dataform loads the data fine, and when I click on the Add button,...
4
by: Nitromuse | last post by:
After showing a DataForm how do you pause the code from continuing to run until the user clicks a button after all the data has been entered ? Thank you for your help!!
2
by: Larry Woods | last post by:
Has anyone noticed that the VS Dataform wizard doesn't gen correctly DISPLAYED results if you have an IDENTITY key defined for your table (normal stuff, IMHO)? If your dataset is empty the first...
6
by: tom c | last post by:
I create 2 data OleDbDataAdapters, one with the wizard, and one in code. I know the adapter created in code is OK because I use it to fill a data table. However, when I try to use the same SQL...
0
by: Peter Newman | last post by:
im slowely getting to grips with this, but one thing im stuck on, is , the following Sub is auto generated by the Dataform Wizard. I have set the OleDbDataAdapter1 OleDbInsertCommand. what i dont...
4
by: Ralph | last post by:
I am trying out the dataform wizard in visual studio using a sql server 2003 database. It seems to want to create ole db adapters and connections and commands. How do I make it use sql commands...
0
by: Meenu4vs | last post by:
Hi i'm using Visual Studio 2005 professional edition. I'm currently doing a customer maintanence project in C#.I need to use DataForm Wizard.I cannot find any DataForm Wizard From the Template.Tried...
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:
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: 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
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,...

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.