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
| 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 20th, 2004, 12:32 AM
Authorized User
Join Date: Feb 2004
Location: Quincy, MA, USA.
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

Reply With Quote
  #2 (permalink)  
Old April 21st, 2004, 12:02 AM
Friend of Wrox
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts

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.


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

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
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

All times are GMT -4. The time now is 01:44 AM.

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