Solved

How do I establish a one to many relationship using DAO?

Posted on 2009-05-09
5
453 Views
Last Modified: 2012-05-06
How do I establish a one to many relationship between two tables using DAO code? Thanks.
0
Comment
Question by:skennelly
  • 3
5 Comments
 
LVL 3

Expert Comment

by:CThomp2005
ID: 24346253
Are you looking to create this relationship in the target Access DB, or "on-the-fly" in a recordset you're pulling from the DB?
0
 
LVL 46

Accepted Solution

by:
tbsgadi earned 125 total points
ID: 24347295
Have a look at the following:

http://support.microsoft.com/kb/193165

Good Luck!

Gary
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24347312
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24347329
Sorry, the first is many to many
0
 

Author Comment

by:skennelly
ID: 24350972
Thanks for your responses. Sorry for the delay in getting back to you. Tbsgati, I will look at the code that you have pasted. In answer to CThomp, I need to update it in a recordset. I am updating a back end database in a remote location with a new table. I am able to create the table, using a DAO recordset but am having trouble establishing a one to many relationship with another table that is already in the database. Thanks again, I let you know how it goes.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question