Connot copy autonumber to number (1 Viewer)

exaccess

Registered User.
Local time
Today, 10:28
Joined
Apr 21, 2013
Messages
287
Hello Experts,
SQL does not copy the field (autonumber) of table1 to another field (number longue) of table2. Is this normal and is there a way around it? Here is the code:
Code:
"INSERT INTO TransUPDSHTbl SELECT TranSHTbl.MemID, TransSHTbl.FirstName, " & _
            " TransSHTbl.LastName, " & _
            " TransSHTbl.Language, TransSHTbl.Email, TransSHTbl.Federation " & _
            " FROM TransSHTbl " & _
            " INNER JOIN MembersTbl ON ((TransSHTbl.LastName = MembersTbl.NOM) AND " & _
            " (TransSHTbl.FirstName = MembersTbl.PRENOM)) ORDER BY MembersTbl.MemID;"
Above table1 = TransSHTbl, table2 =TranshSHUPDTbl, Field1 = MemID, Field2=MemID
Thanks a lot.
 

MarkK

bit cruncher
Local time
Today, 01:28
Joined
Mar 17, 2004
Messages
8,181
You haven't specified any fields in the target table. Try writing the query in the design grid, and then look at what the designer does. Then adapt that query.
 

exaccess

Registered User.
Local time
Today, 10:28
Joined
Apr 21, 2013
Messages
287
You haven't specified any fields in the target table. Try writing the query in the design grid, and then look at what the designer does. Then adapt that query.

You are right I have seen this later after posting. The problem is solved. Thanks.
 

Users who are viewing this thread

Top Bottom