p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Access and Access VBA > Access
I forgot my password Register Now
Register | FAQ | Members List | Calendar | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 19th, 2004, 04:33 PM
Authorized User
Points: 294, Level: 5
Points: 294, Level: 5 Points: 294, Level: 5 Points: 294, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Marikina, , Philippines.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 22nd, 2004, 08:44 AM
Friend of Wrox
Points: 434, Level: 7
Points: 434, Level: 7 Points: 434, Level: 7 Points: 434, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: , , .
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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



All times are GMT -4. The time now is 02:18 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc