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 July 19th, 2004, 03:33 PM
Authorized User
 
Join Date: Jun 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rylemer Send a message via MSN to rylemer Send a message via Yahoo to rylemer
Default Insert multiple records in a Inner Join Table

Hi! p2p to all experts.

I have a exsting table tblMain and tblMainSub.
tblMain is my Main and tblMainSub is the sub table.
I used one to many relationship. I have Inner Join between the Field CompanyID in tblmain and CompanyID in tblMainSub to Visualize my table structured.
tblMain
=======

CompanyID Autonumber
Company Text

tblMainSub
==========
CompanyID Number
Contact_Name Text

Im poluating the records in MS ACCESS using Subform. therefore the CompanyID field in tblMainSub automatically updated.

Now heres the my problem want to ask I want to insert multiple records in that two tables.


I used Inserts using Sub-Select but it doesn't work.

Appreciate all you help

Thanks
Rylemer
 
Old August 22nd, 2004, 07:44 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As far as I understood your problem, u will be able to insert a new Contact_Name only if he is related to a Company. No unrelated Contact_Name would be allowed, only a Company without a related Contact_Name. An independent table non related Contact_Name would solve the problem.
Trully Penta.






Similar Threads
Thread Thread Starter Forum Replies Last Post
insert multiple records into a table from values Deepak Chauhan Oracle 3 May 12th, 2006 10:35 PM
insert multiple records mateenmohd Classic ASP Basics 19 October 18th, 2004 01:22 AM
Left Join-Count Records On 2nd Table harpua Classic ASP Databases 1 September 16th, 2004 02:49 AM
Insert multiple records in a Inner Join Table rylemer Access VBA 0 July 19th, 2004 03:54 PM
Best way to insert multiple records koo9 ADO.NET 2 June 28th, 2003 08:37 PM





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