Solved

How to export one to many relationships in excel

Posted on 2013-12-12
3
1,157 Views
Last Modified: 2013-12-31
I have a table that I need to export that has a one to many relationship. Mainly notes

has anybody ever done anything like that? how to export in excel from 2 tables that have a one to many relationship?

thanks,
Vinnie
0
Comment
Question by:damixa
3 Comments
 
LVL 17

Expert Comment

by:andrewssd3
Comment Utility
I think you'll need to give us a bit more information - are you looking to export access data using a join query into Excel? If so, what format are you expecting in Excel?  If you can give an idea of the data in the tables, and what output you expect, it will be easier to help
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
create a query that joins the two tables, export the query to excel.

if your tables consists of memo fields, you have to open the query as recordset and export the result to excel using vba..

post back if you need more help.
0
 
LVL 34

Accepted Solution

by:
PatHartman earned 500 total points
Comment Utility
What will the Excel workbook be used for?  If it is a report, you can write some code to export the many-side to additional columns rather than rows.  But if the workbook will be imported into another application, you either need to leave off the many-side data entirely or simply export the joined records which appear to "duplicate" whenever there is more than one many-side record.

If you are exporting to another application, you should also look into using XML which lets you export hierarchical data without "duplication".  But of course the target app needs to be able to accept XML for that solution to work.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now