Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Max Records - Append Query

Status
Not open for further replies.

LebronJames

Programmer
Apr 5, 2003
93
0
0
When I use an append query on a table of 1000 records, the new fields are added ok. When I use the same append query in table of 300000. Not all the records are brought over. I am using Access 2000. Is there an option in Access that allows me to change the Deafult Max records. Or can I program this in code?
 
Here is the query I am using:

INSERT INTO Table1
SELECT *
FROM Table2
WHERE (((Table1.field1) Not In (select Field1 from Table1)));

 
I'm curious about your WHERE clause--do you mean table2.field1 not in (select field1 from table1)?
--T
 
Yes I have a temp table (table2) setup identical to table1. Where the data in table2 is not found in table1 append.... this works on smaller tables but if larger than 150000 it does not work. There must be someowhere the max records can be changed..
 
Have you tried this ?
INSERT INTO Table1
SELECT Table2.*
FROM Table2 LEFT JOIN Table1 ON Table2.field1=Table1.field1
WHERE Table1.field1Is Null;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Problem is the unique field is blank or null... removed the blank or null value and append worked....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top