Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

MS Access - creating tables based on query

Thread Tools
 
Search this Thread
 
Old 13 March 2006, 02:12 PM
  #1  
Dracoro
Scooby Regular
Thread Starter
 
Dracoro's Avatar
 
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes on 0 Posts
Default MS Access - creating tables based on query

Hi

I have a query that brings back a number of records. I need a NEW table that contains the results of this query. Should be simple, but how do you do it?

Also (and probably related to above prob), I have a table that I want to select a number of records (or all of them) and insert them to the end of another table.


Essentially, using access, I want to replicate the following SQL:

INSERT INTO table_b B
( SELECT x, y, z FROM table_a A WHERE y = 'abc')
;
Old 13 March 2006, 02:16 PM
  #2  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by Dracoro
Hi

I have a query that brings back a number of records. I need a NEW table that contains the results of this query. Should be simple, but how do you do it?

Also (and probably related to above prob), I have a table that I want to select a number of records (or all of them) and insert them to the end of another table.


Essentially, using access, I want to replicate the following SQL:

INSERT INTO table_b B
( SELECT x, y, z FROM table_a A WHERE y = 'abc')
;
Set the query type to Make Table Query, and to insert or add to table use query type Append Query.
Old 13 March 2006, 02:23 PM
  #3  
Dracoro
Scooby Regular
Thread Starter
 
Dracoro's Avatar
 
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes on 0 Posts
Default

Aha! I knew it should have been easy like that. Thanks.
Old 13 March 2006, 04:05 PM
  #4  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Default

Yes good old Access uses SQL but isnt ANSI SQL 92 compliant so kinda does things in its own foobar way, access sucks!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
TylerD529
General Technical
2
09 October 2015 01:53 AM
ALEXSTI
General Technical
5
28 September 2015 09:29 PM
Ozne
General Technical
2
27 September 2015 03:06 PM



Quick Reply: MS Access - creating tables based on query



All times are GMT +1. The time now is 07:50 AM.