Re: error 3022 when there are no dupes



Hi Jan,

When you say that you are writing to the server -- do you mean you are
writing the data to a Sql Server table? Or is it a backend mdb that
resides on the server?

Well, it looks like your problem is occurring before you get to the
server part.

For starters I would not use RecordsetClone. Use DAO or ADO to set your
Recorset object

Change this

Set rsSource = Forms!comps_frm!UtilitiesSub.Form.RecordsetClone

to

Dim DB As DAO.Database, rsSource As DAO.Recordset
Set DB = CurrentDB
Set rsSource = DB.OpenRecordset("Select t1.* From tbl1 t1 Join tbl2 t2
On t1.someID = t2.SomeID Where somefield = 'something'")
...

Or if you are going to eventually write to a sql server table -- use ADO
and the ADO command Object.
to the

Rich

*** Sent via Developersdex http://www.developersdex.com ***
.



Relevant Pages

  • Re: SQL Server extremely slow
    ... terms of what is meant by a dis-connected ado recordset. ... table in a mdb file could be considered disconnected from the server ... Well, ok, but keep in mind the disk drive is on sql server! ... 10 reocrds from the server via odbc does not produce more ...
    (comp.databases.ms-access)
  • Re: Error -2147168227 Cannot create new transaction because capacity was exceeded.
    ... OLEDB provider for SQL Server. ... > I have been unable to find info in the Knowledge base, ADO or SQL Server ... > ADO driver generates the error. ...
    (microsoft.public.data.ado)
  • Re: DAO vs ADO
    ... ADO ... > extra overhead retrieving metadata from the server for each query. ... > but I feel DAO is not as unsuitable as is often assumed. ... and ADO when working with SQL Server data. ...
    (microsoft.public.access.conversion)
  • Re: Performance Steigerung durch Auslagerung der Tabellen ?
    ... ADO per se ist eine weitere Zwischenschicht zwischen DAO und der ... und schon auf einem SQL Server 2005 nicht mehr richtig laufen (es sei denn ... Indizes, Indizes, Indizes ...
    (microsoft.public.de.access)
  • Re: Performance Steigerung durch Auslagerung der Tabellen ?
    ... einen DB Server, wie DB2 oder MSSQL einen sofortigen ... Au weh, ADO per se ist eine weitere Zwischenschicht zwischen DAO und der Datenbank und macht per se erst mal gar nix schneller, tendenziell eher langsamer. ... zumindest beim SQL Server gilt: ... Indizes, Indizes, Indizes ...
    (microsoft.public.de.access)