CREATE TABLE () AS [SUBQUERY] ...can this be done

  • Thread starter Stuart E. Wugalter
  • Start date
S

Stuart E. Wugalter

Hello Folks!

Here is my simple SQL statement, which I thought would create a Table from
my query:


CREATE TABLE ORDER_NUMS (OrderNum text)
AS
SELECT DISTINCT [tbl Master Table].[Order #]
FROM [tbl Master Table];


Access 2002 does not like this syntax. Can anyone help me create a table
from a query of another table. Thanks in advance. (Hey, I am just learning
this stuff ok? :) Please send responses to email below.

Stuart E. Wugalter
Statistician II
Zilkha Neurogenetic Institute
Keck School of Medicine
E-Mail: (e-mail address removed)
 
L

Larry

-----Original Message-----
Hello Folks!

Here is my simple SQL statement, which I thought would create a Table from
my query:


CREATE TABLE ORDER_NUMS (OrderNum text)
AS
SELECT DISTINCT [tbl Master Table].[Order #]
FROM [tbl Master Table];


Access 2002 does not like this syntax. Can anyone help me create a table
from a query of another table. Thanks in advance. (Hey, I am just learning
this stuff ok? :) Please send responses to email below.

Stuart E. Wugalter
Statistician II
Zilkha Neurogenetic Institute
Keck School of Medicine
E-Mail: (e-mail address removed)


.
get the book "VBA Developer's Handbook" by Getz and
Gilbert. Chapter 4 deals with this subject
 
R

Randy Walker

SELECT DISTINCT [tbl Master Table].[Order #] as OrderNum
INTO Order_Nums
FROM [tbl Master Table];
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top