Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 8th, 2003, 05:23 PM
Authorized User
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default append query

I have a table that I want to add records to using an append query.
There are 4 fields to be added for each record and these fields are taken from another form.

The append query runs after the form is updated.

I build the append query in the query window and run it there.
The first time it adds one record as expected. If I dirty the form to fire the after update event (resave without change record) when the append query runs it add 3 records. Each successive run doubles the amount of record added...6, and 12, 24 and so on.

I also notice that if there is no record in the table it is not updated when the query runs.

How can I get aroubd these problems?

Old November 9th, 2003, 01:54 AM
sal sal is offline
Friend of Wrox
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts

I would have to see your append query code and table structure to figure it out

Old November 12th, 2003, 09:17 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts

Not too sure exactly what's going on without seeing yr code, but have you tried something like:
Private Sub Form_AfterUpdate()
If Me.Dirty=True Then
End If
End Sub

I am a loud man with a very large hat. This means I am in charge

Similar Threads
Thread Thread Starter Forum Replies Last Post
Append Query bright_mulenga Access 1 January 3rd, 2007 01:33 PM
Append Query Cybersurfer Access 1 February 13th, 2006 01:02 PM
Append Query Quandry SerranoG Access 5 November 15th, 2005 06:36 PM
append query? bph Access 2 November 23rd, 2004 12:44 PM
Append query problem vladimir Access VBA 4 July 23rd, 2003 07:58 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.