INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Copy fields from Excel to use Access Relationships

Copy fields from Excel to use Access Relationships

(OP)
Hi,

I am trying to show DB Relationships using MS Access. I have the tables, fields and descriptions in an excel spreadsheet. I tried copying and pasting the all the fields of a table into the 'Design' screen in Access but it did not work. There are more than 200 columns so copying and pasting one column at a time would be very time consuming.

Any suggestions would be helpful.

Regards
Philipose  
 

RE: Copy fields from Excel to use Access Relationships




hi,

The only thing that you can paste into Access is SQL, using the tables and join relationships.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: Copy fields from Excel to use Access Relationships

Do you actually have 200 fields in a single table or are these from multiple tables?

Duane
Hook'D on Access
MS Access MVP

RE: Copy fields from Excel to use Access Relationships

Are you actually trying to create a database from a description of tables and field, just diagram a relationship model based on a description of tables and fields, or create a database based on actual tables and fields in a spread sheet?
You need to describe better what you have and what you are trying to do.

There are a lot of tools out there that allow you to create the entity relationship and diagram the relationships without actually creating the database. Or you can use the model to create a database from the description of the database.  ERwin or even Visio are two well known tools for doing this. However there are a lot of freeware tools to do this. Take a look at this thread I have not used any of the tools mentioned except ERwin, but that is not free and probably beyond your needs:
http://www.knowledgesutra.com/forums/topic/4351-freeware-entity-relationship-diagram-software/

You can also use ADO/DAO to do this, and it would not be that much code
Assuming each sheet describes a table, contains field names, data types, key information, and related field information
1)Read each worksheet
2)Create a table definition from each worksheet
3)add to database the table def
4)Read the fields in the worksheet
5)add the fields to the table def
6)set the datatype and keys
7)create your relation definitions
8)add the relation definition to the database

 

RE: Copy fields from Excel to use Access Relationships

(OP)
Thanks for your responses. I am merely trying to create a ER diagram and not a DB. I have a multiple tables and columns (200 odd columns in total) in an excel spreadsheet. Let me see if any of the freeware tools from the link that MajP suggested. I do have visio but I am not sure if I can copy and paste the fields directly and make up an ER diagram.

Regards
Philipose

RE: Copy fields from Excel to use Access Relationships

You can do an import into visio. Choose "database", "import".   I am not sure how you data is set up, but it should be able to at least get your fields and allow you to set the datatypes and keys.

RE: Copy fields from Excel to use Access Relationships

(OP)
MajP,

Under Visio,  "database", "import" there seems to be only 2 options: ie import an ERWin file (.ERX file) or import a Visio Modeller file (.IMD)
 

RE: Copy fields from Excel to use Access Relationships

Sorry try reverse engineer.  At least it should help to create a table with the field in the entity model.  You may have to put the fields into columns. I did not try with fields as rows.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close