John,
I dont think my last post went through, will try to reconstruct for you.
Database is not bloating as the append is not completing. I am even
running
the compact and repair after each error message.
Here is the SQL statement:
INSERT INTO MM ( UID, EquipmentID, NewDate, FuelMiles, WOMiles, [Check],
NewCheck )
SELECT [MM 05 mst date].UID, [MM 05 mst date].EquipmentID, [MM 05 mst
date].NewDate, [MM 05 mst date].FuelMiles, [MM 05 mst date].WOMiles, [MM
05
mst date].Check, IIf([MM 05 mst date].[Check]=0,(Select Top 1 [MM 04
cond].[Check] From [MM 04 cond] Where [MM 04 cond].[Check] >0 And [MM
04
cond].[EquipmentID] = [MM 05 mst date].[EquipmentID] And [MM 04
cond].[NewDate] < [MM 05 mst date].[NewDate] Order by [MM 04
cond].[NewDate]
DESC, [MM 05 mst date].[EquipmentID]),[MM 05 mst date].[Check]) AS
NewCheck
FROM [MM 05 mst date], [MM 04 cond]
WHERE ((([MM 05 mst date].EquipmentID)<="CP042"));
--
Bruce
:
On Sat, 15 Nov 2008 15:10:00 -0800, Bruce
<
[email protected]>
wrote:
I am running an append query with a sub query. Have reduced the
selection to
66,000 records and still get the error message.
It runs for about an hour and a half and then delivers the error
message.
I have abundanct spare space on my hard drives: C: 17 gig, D: 29 gig
(program is runnning from here) E: 39 gig. I have 22 gig of page files
across
all three hard drives.
I found the temp file Access is using but not sure how to change size
of
file. JET6DC.tmp.
Again... fix the query instead. This is a misleading error message;
Access
will come out with it under all sorts of circumstances, even when temp
disk
space is not really the issue!
You *can* find the location of your temp file. Open the command window
(Start... All Programs... Accessories... Command Prompt) and type
cd %temp%
You'll see where the temp directory is. It's most likely on C:.
You'll find it, and it will have plenty of room, and resetting the Temp
environmet variable to your E drive won't help, I fear!
Is your database bloating? How big is it before running the query, and
how big
after the failed attempt?
Could you post the SQL of the query?