Append Qry In Access 2000 
Author Message
 Append Qry In Access 2000

I want to append some data, (select fields only) from one Access 2000 tbl to
another and where two unique IDs match, (one in ea tbl).  I was trying to
use a docmd.RunSQL "Insert Into..." statement.  However, no data is appended
over and the temp qrydef  I created, (QBE) screen is blank.

Should I use the recordsetclone, or some other method?  I could really use a
push in the right direction.

Thank you for your help.
-Chris



Tue, 22 Apr 2003 16:28:07 GMT  
 Append Qry In Access 2000
Execute the SQL statement with dbFailOnError, i.e.:
        Currentdb().Execute "Insert ...", dbFailOnError

dbFailOnError generates an error if there's a problem.
There's no need for a temp qdf.
The other issue is whether your WHERE statement returns any records.

Quote:

> I want to append some data, (select fields only) from one Access 2000 tbl to
> another and where two unique IDs match, (one in ea tbl).  I was trying to
> use a docmd.RunSQL "Insert Into..." statement.  However, no data is appended
> over and the temp qrydef  I created, (QBE) screen is blank.

> Should I use the recordsetclone, or some other method?  I could really use a
> push in the right direction.

> Thank you for your help.
> -Chris

--
Perth, Western Australia
Tips for MS Access users at:
        http://odyssey.apana.org.au/~abrowne


Tue, 22 Apr 2003 17:36:10 GMT  
 Append Qry In Access 2000
I don't know if I said so in my last message, but you'll need to set a
reference in the project to Microsoft DAO 3.6 (or 3.61, whatever, forget
now)


Quote:
> I want to append some data, (select fields only) from one Access 2000 tbl
to
> another and where two unique IDs match, (one in ea tbl).  I was trying to
> use a docmd.RunSQL "Insert Into..." statement.  However, no data is
appended
> over and the temp qrydef  I created, (QBE) screen is blank.

> Should I use the recordsetclone, or some other method?  I could really use
a
> push in the right direction.

> Thank you for your help.
> -Chris



Fri, 25 Apr 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Access 2000 append query run from Outlook 2000 fails - no error message - REPOST

2. Automatically append a field to a table in Access (2000 or XP)

3. How to append to an identical Access 2000 database

4. Append qry

5. Working append qry fails when invoked with Execute method

6. Auto Answer Append QRY Warning

7. read excel file in access 2000 lire fichier excel dans access 2000

8. Importing an Access 2000 table into another Access 2000 database with VB Code

9. Accessing reports in Access 2000 with SQL 2000 as Backend

10. Distributing VB/Access 2000 Apps to non Access 2000 owners

11. Problem with data shaping APPEND command against SQL Server 2000

12. can you use an access qry with CR?

 

 
Powered by phpBB® Forum Software