Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 8th, 2003, 05:23 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
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?

Thanks
Reply With Quote
  #2 (permalink)  
Old November 9th, 2003, 01:54 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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



Sal
Reply With Quote
  #3 (permalink)  
Old November 12th, 2003, 09:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:52 AM.


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