Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 April 20th, 2004, 12:32 AM
Authorized User
 
Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form does not allow new records

Hi all,

I have just began studying access and am having a problem with a particular form. The form is based on two tables and the data populating this form comes from a query of the two tables. Although I can change data in the underlying tables with this form, I cannot ADD NEW RECORDS with it!! The error message is as follows:
"The current field must match the join key 'Customers.Customer Number' in the table that serves as the 'one' side in the one-to-many relationship. Enter a record in the 'one' side table with the desired key value and then make the entry with the desired join key in the 'many-only' table".
It appears to be telling me to add the data in the underlying tables!
Any help would be greatly appreciated.
Thanks guys


 
Old April 21st, 2004, 12:02 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Don't use a 1 to many relationship for a form.
Say, for example you have Customers and Orders, where one customer can have many orders:
Have Customers as the main form, and Orders as a subform.

Steven

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
UpDate Records on a Form ManFriday Access 2 September 8th, 2007 04:21 AM
Filter Records in a continuous form darrenb Access 2 June 1st, 2007 06:50 AM
Count of form records siptah Access VBA 3 April 20th, 2005 09:09 AM
Save Records Before Closing Form Ben Horne Access VBA 1 March 30th, 2004 11:47 PM
form, archive records between dates bubblez Access 2 October 2nd, 2003 08:34 PM





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