• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Using access as an asp.net application database

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
Tec-Futures
Asked:
Tec-Futures
1 Solution
 
Scott Fell, EE MVEDeveloperCommented:
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
 
Manoj PatilSr. Software EngineerCommented:
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
 
Tec-FuturesAuthor Commented:
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now