Thanks guys, I'm sorry I wasn't clear the first time.
I have three tables Frame, Layer and File
When a user creates a Frame. In the Frame table it is given a unique FrameID
(autonumber)
Next they create a Layer. In the Layer table it is given a unique LayerID
(autonumber) and associates it with the FrameID created in the Frame table.
Finally they create a File (a gfx or swf) and it is given a unique FileID
(autonumber) associated to the LayerID in the Layer table
Frame.FrameID's have been deleted but not the associated Layer.FrameID,
Layer.LayerID or File.FileID's.
I am trying to create a make-table query to identify orphan Layer.FrameID,
Layer.LayerID and File.FileID's.
Here's what I'm doing......
1st Query
SELECT [Layer].[FrameID], [Layer].[LayerID], [Frame].[TitleText] INTO
FrameExtra
FROM Layer LEFT JOIN Frame ON [Layer].[FrameID]=[Frame].[FrameID]
WHERE ([Frame].[FrameID] Is Null);
This works fine
Next a make-table query to capture the FileID's
2nd Query
SELECT [File].[FileID], [File].[LayerID], [File].[Type] INTO FileID_temp
FROM File;
This works fine
Finally a make-table to ID the orphan Frame.FrameID, Layer.LayerID and
File.FileID
3rd Query
SELECT [FrameExtra].[LayerID], [FileID_temp].[FileID] INTO Clean_final
FROM FrameExtra LEFT JOIN FileID_temp ON
[FrameExtra].[LayerID]=[FileID_temp].[LayerID];
Here lies my problem... I receive an error stating "Resultant table not
allowed to have more than on Autonumber field."
I do appreciate your time....thanks
Ted Allen said:
Hi Bill,
I haven't had a need to do this before, but I would think that you may be
able to get what you want if you substitute an expression such as
Clng([YourIDField]) as the field source for one or both of the fields in your
append query rather than just the field name itself.
Post back if this doesn't work and I'll look for other ways to do it.
-Ted
:
I am asking two tables to provide fields data into a new table. Both are
autonumber fields. The resultant table cannot have more than one autonumber
field. Does anyone have a solution?
Thanks, Bill