Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 March 15th, 2012, 06:41 PM
Registered User
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Form not updating table

Hi Everyone, I am not only new to this forum but new to Access VBA. I have taught myself a fair bit but am struggling with a situation where the form save button does not add a new record to the relative table, but simply overwrites the data on the same row.
I discovered that using the undersized "Add New (Blank) record button at the bottom of the form window works fine and when I view the table, all the test records are added as new records. I cant seem to get the same result using a button.
Any ideas are most welcome with great thanks for your time. I am sure its an easy fix.
Darren
 
Old February 3rd, 2013, 07:36 PM
Registered User
 
Join Date: Feb 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Darren, it always helps to provide code for what you are having problems with. I am assuming you have VBA code to launch on the Save button's On Click event, but am only guessing. Do you have VBA code for the form's On Load event? What does your Property Sheet show for RecordSource? RowSource? Data Entry? Allow Additions? Help us help you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating main Form From Sub Form Brendan Bartley Access 1 August 24th, 2009 04:01 PM
Updating one table with data from another table dirtdog22 Access VBA 1 January 21st, 2008 04:41 PM
Updating table every now and then rtr1900 Classic ASP Databases 2 December 2nd, 2005 03:12 AM
updating table information with a form? lanctotd Access 1 June 8th, 2004 12:46 PM
Refresh form while updating linked form mfletch Access 0 February 26th, 2004 10:32 PM





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