Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change values while inserting table? 2

Status
Not open for further replies.

briglass

Programmer
Dec 4, 2001
179
0
0
GB
Hello,

Right now I have code that successfully inserts one table into another.

I would like to be able to change the values in one column on the final merged table.

Code:
strsql$ = "INSERT INTO table1 SELECT table2.* FROM table2;"
db.Execute strsql$

In the final table1, if the value under the column 'section' is "full", I would like it to be changed to "skip." If the value is "skip," I would like it to be changed to "full"... for the entire table1.

Is that possible?

Any ideas?




Thanks, (-:
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top