Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Me.BusObjName.SaveRow after MM New Button Click
Message
 
À
15/02/2005 15:53:37
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00987202
Message ID:
00987330
Vues:
42
Joe,

>After I enter the remaining values I press my Next button I get the following error message:
>Cannot insert the value NULL into column 'VisitorType', table 'StellarVisiTrak.dbo.VisitorTypes'; column does not allow nulls. INSERT fails.

Is "VisitorTypes" specified as the TableName for the VisitorType business object? Is the "VisitorTypes" column bound to a user interface control? In Windows Forms binding back occurs automatically. When a user enters a value and the control loses focus the value is stored back to the specified DataColumn.

If all of this is set up correctly, it's possible you're running into an EndEdit issue with Windows Forms. Check out the MM .NET Dev Guide topics "AutoEndEdit: Automatically Ending Pending Edits" and "Why doesn't my data get saved to the back end?".

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform