Make-table query w/ an Index field

G

Guest

I have a make table query and want to have it create an index on one of the
fields it is creating at the same time. Here is my query, does anyone know
how to do this?

--------------------------------
SELECT [Unassigned_ARC].[ARC] INTO Unassigned_ARC_Bkgs
FROM Unassigned_ARC INNER JOIN AGENCY_REVENUE ON
[Unassigned_ARC].[ARC]=[AGENCY_REVENUE].[AGENCY_CD]
WHERE ((([AGENCY_REVENUE].[AMOUNT])>"0") And
(([AGENCY_REVENUE].[DATE])>=#1/1/2005#))
GROUP BY [Unassigned_ARC].[ARC];
 
R

Rick Brandt

James said:
I have a make table query and want to have it create an index on one
of the fields it is creating at the same time. Here is my query, does
anyone know how to do this?

--------------------------------
SELECT [Unassigned_ARC].[ARC] INTO Unassigned_ARC_Bkgs
FROM Unassigned_ARC INNER JOIN AGENCY_REVENUE ON
[Unassigned_ARC].[ARC]=[AGENCY_REVENUE].[AGENCY_CD]
WHERE ((([AGENCY_REVENUE].[AMOUNT])>"0") And
(([AGENCY_REVENUE].[DATE])>=#1/1/2005#))
GROUP BY [Unassigned_ARC].[ARC];

Can't be done from the query. Better would be to create the table ahead of time
with the index already built and then use an Append query instead of a MakeTable
query.
 

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