Solved

Select  .... Into

Posted on 2003-11-28
2
263 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
Comment Utility
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
Comment Utility
just you must use into after insert
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now