Solved

Select  .... Into

Posted on 2003-11-28
2
267 Views
Last Modified: 2010-05-01
Iam using VB6 and DataBAse access XP, iam using ado to connect to the database. i want to add a number of records from one table to another. now iam using
Select * Into NewTable From OldTable

this method create the table then added the new records to it . that is fine but the problem that i want to add another number of records from the same table to the same new table without loosing the newtable records , is this possible?

Thanx
0
Comment
Question by:ashraf_t
2 Comments
 
LVL 1

Accepted Solution

by:
robdogg10 earned 50 total points
ID: 9840288
Try this SQL.  It will do the trick.

Insert NewTable (fld1, fld2, fld3)
select fld1,fld2,fld3 from OldTable

0
 

Author Comment

by:ashraf_t
ID: 9840332
just you must use into after insert
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question