473,406 Members | 2,404 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,406 software developers and data experts.

update/delete fails because of null checks

1,271 Expert 1GB
Hi. Long time Access programmer just getting started with Visual Studio and ASP.Net. Using VS 2005 with VB language.

Using the walk through help pages, I can easily make working web pages that pull data from my Access database. Way cool! :) Until, I try to update my data. :(

When I enable editing and deleting I can still view my data. I can click the Edit button and change my data, but when I click the "Update" button after I have changed the data, I get this error. And I get the same error when I click the "delete" button. The error is:
"No value given for one or more required parameters."

I can get rid of the error if I change
Expand|Select|Wrap|Line Numbers
  1. UpdateCommand="UPDATE [FD_GROUP] SET [FdGrp_Desc] = ? WHERE (([FdGrp_CD] = ?) OR ([FdGrp_CD] IS NULL AND ? IS NULL)) AND (([FdGrp_Desc] = ?) OR ([FdGrp_Desc] IS NULL AND ? IS NULL))">
to
Expand|Select|Wrap|Line Numbers
  1. UpdateCommand="UPDATE [FD_GROUP] SET [FdGrp_Desc] = ? WHERE (([FdGrp_CD] = ?) OR) AND (([FdGrp_Desc] = ?) OR )">
What's going on and how do I avoid this problem?

Thanks,
Jim
Jul 14 '10 #1
0 892

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Fraser Hanson | last post by:
Hello, I have a table which has a foreign key relationship with itself. I want and expect my updates to cascade (deletes definitely cascade as expected) but instead I just get error 1217:...
2
by: news.la.sbcglobal.net | last post by:
hi all i am trying to update or delete a row/record in table cptcodes the error i am getting is key column information is insufficient or incorrect to many rows were affected by update.... ...
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
3
by: sql-db2-dba | last post by:
There are 2 tables A and B with A being the parent of B. Table A ( Col1 varchar(5) Not Null ) Table B ( B_PK varchar(5) Not Null ,
4
by: Daniel | last post by:
Hi All, I have question regarding to the read, and update the row in the table. for example: user A, read the row of data from the table. user B, read the row of data from the table as well....
9
by: DraguVaso | last post by:
Hi, I'm writing a VB.NET application who has to insert/update and delete a whole bunch of records from a File into a Sql Server Database. But I want to be able to knwo the 'result' of my ctions....
1
by: muralik | last post by:
Hi all, I want to refer to a foreign key in a table and set null on delete and on update cascade it...my commands were as follows.. create table Institute( name ...
3
by: pu2t | last post by:
hi, i have home work to build a database. there is a rule stated if airplane removed from database, it won't removed flight schedule that use the airplane. i have made the DDL, but it's not work ...
0
by: saidev | last post by:
Hi All, One of the table has few data until yesterday and today when i query that table there are no rows. Can please anyone explain how to identify which user has delete and when last...
1
by: ganesh22 | last post by:
Sir: My requirement is display the xml document in asp.net their user can add,update,delete.so based on my requirement i display the xmlfile in <iframe> control i want to edit and delete...
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: 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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.