Link to home
Start Free TrialLog in
Avatar of skennelly
skennelly

asked on

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

How do I establish a one to many relationship between two tables using DAO code? Thanks.
Avatar of CThomp2005
CThomp2005

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?
ASKER CERTIFIED SOLUTION
Avatar of tbsgadi
tbsgadi
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, the first is many to many
Avatar of skennelly

ASKER

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.