Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Using access as an asp.net application database

Posted on 2013-01-04
3
235 Views
Last Modified: 2013-01-06
I have access as a database for an asp.net application.  When I try to submit data I get a error that I cannot submit null values. The access required field is set to no on all fields in the table.

Configuration:
2 asp.net - access data provider
   one for a filtered DDL
   one for the formview
1 form view control
1 DDL drop down list


the form view is filtered by the DDL
the form view is configure to allow update, delete and new records

no code behind all code is declarative code

I have an access data provider connected to a form view control. The data provide is using a wild card and filtering off a second data source attached to a drop down list with a filtered filed. The app works as plan but when I try to insert a record the page blows up and indicates that I cannot us null values
Error.PNG
0
Comment
Question by:Tec-Futures
3 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 38746163
By any chance are you trying to insert data into your auto number field?  I would also try and handle the data prior to insert.
0
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 245 total points
ID: 38749029
Have a look at the soure of the aspx page and the sqldatasource should be there. It will have various settings and you can edit them. Inset parameters should be there somewhere. If you like post up what is there and I'll have a look.
There must be the Insert parameters, delete unwanted one like ID. And see result.
Let me know.
0
 
LVL 1

Author Comment

by:Tec-Futures
ID: 38749323
Both answers were correct.

Tech your information was a little more detailed which led me to solving the problem.

padas your response was correct as well but it left me trying to figure out where and what to remove.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question