Re: select then insert into tables

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Scott Toney wrote:
I use:
SQL = "Insert into Table1 (tcode, tdescription, ccchecked, screenorder ) "

SQL = SQL & "SELECT tCode, tDescription, 'N', 0 "

SQL = SQL & " FROM table2 "

SQL = SQL & " where tCode = " + tmpCode + " "

SQL = SQL & "group by tcode, tdescription "

what do you do if the tables are in different databases?

:L
.