Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir,
I have two Table Name Table1 and Table2 as below:-
Table1
Mobile Remarks


Table2
Mobile Name Fname Address


Now I want that table2.mobile data should copy into the table1.mobile data and rest of the columns of Table2 data should be copy in the table1.remarks column.
Please send me query



Sir,
As you send the query am using in MS-Access 2007 but its giving error message that Syntax error in query expression "select mobile".
Posted
Updated 21-Jan-13 23:54pm
v3
Comments
OriginalGriff 21-Jan-13 4:46am    
Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know
Richard MacCutchan 21-Jan-13 4:46am    
This is a repost; see below in QΑ list.
OriginalGriff 21-Jan-13 4:48am    
I was just telling him that when you were telling me! :laugh:
OriginalGriff 21-Jan-13 5:00am    
Richard, did you edit that?
I got strange characters in the email, that I don't normally:
"This is a repost; see below in QΑ λιστ."
If you didn't, then I'll mention it to Chris in Sugs'n'Bugs.
Richard MacCutchan 21-Jan-13 5:02am    
Sorry I hit my "switch language" keys by mistake so it came out as Γρεεκ characters.

1 solution

Try out with below mentioned query.

SQL
INSERT INTO TABLE1 (Mobile, Remarks) VALUES (SELECT MOBILE, NAME||' '||FNAME||' '||ADDRESS FROM TABLE 2)


Hope this will help you..
 
Share this answer
 
Comments
Rajesh Kinger 22-Jan-13 5:22am    
Sir,
It's still not working its giving error message that "Sytax error in query expression 'select mobile'.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900