Solved

Select  .... Into

Posted on 2003-11-28
2
265 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

825 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