473,387 Members | 1,650 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,387 software developers and data experts.

ms access update problem

I'm trying to update a table (67024_G03_03012004 ) by matching on the name column in another table (blanks) field. These columns are the same. I can't get it to work.
Any help would be appreciated ! Here is my SQL:


UPDATE 67024_G03_03012004
SET 67024_G03_03012004.Student_OEN = (select [blanks].[oen_number]
from [blanks]
where
[67024_G03_03012004].[StudentName]=[Blanks].[StudentName]);
May 30 '07 #1
6 1714
Rabbit
12,516 Expert Mod 8TB
What error are you getting? What results are you getting?
May 30 '07 #2
What error are you getting? What results are you getting?
It first asks me for input parameters (which I wasn't expecting) but when I put in a value the error message says 'operation must be an updateable query'.
May 30 '07 #3
Rabbit
12,516 Expert Mod 8TB
It first asks me for input parameters (which I wasn't expecting) but when I put in a value the error message says 'operation must be an updateable query'.
What parameter is it asking you to define?

Usually a parameter when you don't expect one means you've mispelled a table name or field name.
May 30 '07 #4
What parameter is it asking you to define?

Usually a parameter when you don't expect one means you've mispelled a table name or field name.
Currently, I just need to know if the syntax of the update command is correct ?
This would help greatly.
May 31 '07 #5
pradeep kaltari
102 Expert 100+
I'm trying to update a table (67024_G03_03012004 ) by matching on the name column in another table (blanks) field. These columns are the same. I can't get it to work.
Any help would be appreciated ! Here is my SQL:


UPDATE 67024_G03_03012004
SET 67024_G03_03012004.Student_OEN = (select [blanks].[oen_number]
from [blanks]
where
[67024_G03_03012004].[StudentName]=[Blanks].[StudentName]);
Hi,
The syntax of UPDATE seems to be correct but make sure that the sub-query returns only one row.

Pradeep
May 31 '07 #6
MMcCarthy
14,534 Expert Mod 8TB
I would actually change it as follows:

Expand|Select|Wrap|Line Numbers
  1.  
  2. UPDATE 67024_G03_03012004 INNER JOIN [Blanks] 
  3. ON [67024_G03_03012004].[StudentName]=[Blanks].[StudentName]
  4. SET 67024_G03_03012004.Student_OEN = [blanks].[oen_number]
  5.  
Jun 1 '07 #7

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

Similar topics

4
by: Charlie Williams | last post by:
I am having difficulty performing updates and deletions on an Access database using the Update() method of the OleDBDataAdapter. I can insert rows without a problem, but I get a concurrency...
14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
2
by: Shaun | last post by:
Ok here is the situation… Have an access 20002 application that I'm converting to have a SQL Server backend (2000), the application has been in use with an access backend for years, no real...
13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
13
by: mfreeman | last post by:
The minimal code (VB.NET 2003) needed to show this problem is shown below. All I do is loop through the records in the table and update them without making any changes. Out of 600 records, about...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
17
by: rdemyan via AccessMonster.com | last post by:
With A2003, I'm having trouble accessing files in a folder on another computer where back-end files, update files, etc are located. Here's the scenario: 1) Computer #1 - A2003 2) Computer #2 -...
8
by: nspader | last post by:
Ok, I wish there was a more clear way to word my problem in one sentence, but there isn't. Let me explain what I am trying to do. I have a db that I am constantly doing updates to. I send it out...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.