Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
All Other Software
Tag Cloud
access acer asus bios bsod crash desktop driver drivers error ethernet excel freeze games gaming hard drive hardware hdmi internet laptop malware memory missing monitor motherboard network printer problem ram random registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Software & Hardware > All Other Software >
SQL statement to copy field from one table to another

Reply  
Thread Tools
brimba's Avatar
Junior Member with 2 posts.
 
Join Date: Feb 2009
Location: Malta
Experience: Intermediate
07-Feb-2009, 09:49 AM #1
Cool SQL statement to copy field from one table to another
I have 2 tables and need to copy all the values from one field of tblB to an existing field in tblA.

I am using the RunSQL command from within an Access Macro and have inserted this SQL Statement.

UPDATE tblA SET fieldA = fieldB from tblB

This syntax does not seem to be correct since I am getting error message:
"Syntax error (missing operator) in query expression 'fieldB from tblB'."

Can you please help.

THANKS
dylanrelos's Avatar
Junior Member with 2 posts.
 
Join Date: Feb 2009
07-Feb-2009, 10:44 AM #2
try this:
select * into tblB from tblA

I hope these helps.
good luck.
brimba's Avatar
Junior Member with 2 posts.
 
Join Date: Feb 2009
Location: Malta
Experience: Intermediate
10-Feb-2009, 09:37 AM #3
Thanks for answering.
That will not help though..... I need to copy the data from one field of tblB to overwrite the data in another field of tblA.

in other words....
i need to overwrite tblA.fieldA with the values in tblB.fieldB

can you help?
Reply

Tags
access, sql, statement, update

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:40 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.