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

Limited number of updateable fields in update query??

Hello,

I am executing an SQL string in an ADO connection to an Access mdb that
updates 10 fields in one row:

SQL = Update table1 set fld1 = value1, fld2 = value2,...fld10 = value10
Where <criteris>
connADO.Execute SQL, iRecsAffected

When i execute the code it doesn't update any records. I pasted the text in
the qbe and it still didn't update any rows - no errors, just 0 rows
updated.

After experimenting I found that the statement will update 1 row if I only
have 9 fields to update. It didn't matter which field I omitted, as long as
there was only 9 or less. This seems to be consistent between my ADO
connection and using DAO in the qbe.

Has anyone else heard of this limitation?


Mar 3 '06 #1
1 1525
I found the answer, but it makes no sense. My criteria for the record is a
3 field compound key - one of which is a date field. In my SQL string, I
didn't put #s around the date. No problem. But why did it work when I
removed a simple text or integer field - leaving the same criteria?

"Matthew Wells" <MW****@FirstByte.net> wrote in message
news:B8*****************@newsread1.news.atl.earthl ink.net...
Hello,

I am executing an SQL string in an ADO connection to an Access mdb that
updates 10 fields in one row:

SQL = Update table1 set fld1 = value1, fld2 = value2,...fld10 = value10
Where <criteris>
connADO.Execute SQL, iRecsAffected

When i execute the code it doesn't update any records. I pasted the text in the qbe and it still didn't update any rows - no errors, just 0 rows
updated.

After experimenting I found that the statement will update 1 row if I only
have 9 fields to update. It didn't matter which field I omitted, as long as there was only 9 or less. This seems to be consistent between my ADO
connection and using DAO in the qbe.

Has anyone else heard of this limitation?

Mar 3 '06 #2

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

Similar topics

8
by: Tom wilson | last post by:
This is driving me nuts. I'm trying to update an Excel spreadsheet using ADO.Net and Oledb in VB.Net. The connection is open, the adapter is connected and the dataset is loaded. Here's the code...
4
by: Derek Van Cuyk | last post by:
Hi everyone! I'm trying to write a web application in school that utilizes a MS Access database. I can read and everything fine from it but when I try to add a new record I get an exception that...
4
by: Jim in Arizona | last post by:
Continuing my lessons out of a book, I ran into a problem when trying for the first time to update a datastore (access database in this case). My Code: Private Sub Page_Load(ByVal sender As...
4
by: Sebastian Böck | last post by:
Hello all, i have a view defined as a simple select of a table. This table is inherited by a couple of others. All entries belong to the child-tables. I also have an unconditional update rule...
8
by: Jim in Arizona | last post by:
I've been using an example out of a book to be able to edit the rows in a database. I am getting the following error: ========================================================...
27
by: Bob | last post by:
running access 2k; mdb w/ linked tables to another mdb (front/back-end); trying to run a query that updates a table FROM information from a crosstab query. I AM NOTT trying to update the...
1
by: melody.charlesworth | last post by:
I link fields in tables 1 and 2 (one to one or unmatched) in order to update fields in table 2 with others from table one. If I use criteria from one of these tables there is no problem but if I...
4
by: Mike D | last post by:
OS: Windows XP Professional Microsoft Access 2003 I am trying to update a table in my DB from a tempory table. I need to ensure that if records in the main table match records in the temp...
1
by: wquatan | last post by:
I have a problem with an Access Update-Query (made in the designer) for a SQL-server Table. The Query consists out of the Table to be updated, and a joined "Select" subquery to provide the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.