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

Updating between two tables?

I have two tables, each with COMGID as unique key.
One table is CL, the other tblRevisedetails.
They have some fields in common, I want to update the fields in
tblRevisedetails with the corresponding values in CL.

I come up with the following query using the querybuilder. It is busy
for a while (2/3 secs more or less) but nothing gets changed!!!!

Who knows where am I missing what? (besides intelligence ofcourse :p)

UPDATE CL INNER JOIN tblRevisedetails ON CL.ComGid =
tblRevisedetails.REVISIE_OKGR_ID SET
tblRevisedetails.REVISIE_Huidigerevdatum = [CL]![RevisieDatum],
tblRevisedetails.REVISIE_ENA = [CL]![ENA], tblRevisedetails.REVISIE_DZB
= [CL]![DZB], tblRevisedetails.REVISIE_CR = [CL]![CR]
WHERE (((tblRevisedetails.REVISIE_Huidigerevdatum) Is Null));

Greetings Henro

Jul 4 '06 #1
1 1232
open the query in design view, and change it to a SELECT query (Query |
Select Query on the menu bar). then look at the query in Datasheet View to
see if it returns any records; if you don't get any records in a Select
query, you won't get any changes in the Update query.

hth
"Henrootje" <He****@gmail.comwrote in message
news:11**********************@a14g2000cwb.googlegr oups.com...
I have two tables, each with COMGID as unique key.
One table is CL, the other tblRevisedetails.
They have some fields in common, I want to update the fields in
tblRevisedetails with the corresponding values in CL.

I come up with the following query using the querybuilder. It is busy
for a while (2/3 secs more or less) but nothing gets changed!!!!

Who knows where am I missing what? (besides intelligence ofcourse :p)

UPDATE CL INNER JOIN tblRevisedetails ON CL.ComGid =
tblRevisedetails.REVISIE_OKGR_ID SET
tblRevisedetails.REVISIE_Huidigerevdatum = [CL]![RevisieDatum],
tblRevisedetails.REVISIE_ENA = [CL]![ENA], tblRevisedetails.REVISIE_DZB
= [CL]![DZB], tblRevisedetails.REVISIE_CR = [CL]![CR]
WHERE (((tblRevisedetails.REVISIE_Huidigerevdatum) Is Null));

Greetings Henro

Jul 4 '06 #2

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

Similar topics

3
by: Bernard André | last post by:
Hi All, context: I am using Access 97 tablkes with VB. I can see records in the MDB, using Adodc and datagrid. No problem. But when doing: rsprivate.AddNew rsprivate!For =...
0
by: cwbp17 | last post by:
Have two tables that have a FK relationship on ID column. Have one datagrid that displays all of the columns of both tables. What's the best approach on updating a row from the datagrid back to...
3
by: Bucko | last post by:
How important do you guys feel locking a database is while updating/adding information? Do you do it with every app you make? Only very high volume (traffic) apps? I'm trying to decide if my app...
1
by: Mark | last post by:
I'm having a problem updating recordsin an Access DB table. I can update other tables in this db with no problem, and I can dreate new record in all of the tables (including this one.)> But I can't...
0
by: cwbp17 | last post by:
I'm having trouble updating individual datagrid cells. Have two tables car_master (columns include Car_ID, YEAR,VEHICLE) and car_detail (columns include Car_ID,PRICE,MILEAGE,and BODY);both tables...
34
by: Jeff | last post by:
For years I have been using VBA extensively for updating data to tables after processing. By this I mean if I had to do some intensive processing that resulted in data in temp tables, I would have...
4
by: Geoff | last post by:
Hi I'm hoping somebody can help me with the following problem that has occurred to me. Suppose I have two tables in an SQL Server database. Let's call these tables A and B. Assume that A has...
1
by: rdemyan via AccessMonster.com | last post by:
My App has 10 or so tables that we provide that contains proprietary data. This data will need to be updated once or twice a year. I would like some comments, suggestions on my proposed strategy...
5
by: aaron.m.johnson | last post by:
I have an application which contains an Access database with linked tables that point to another database within the application. The problem I have is that when the user installs the application,...
2
by: Sid Price | last post by:
I have an application that has already been deployed and we need to add a new column to some of the tables in the application database. We are using an access database. We have a solution working...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.