PC Review


Reply
Thread Tools Rate Thread

Data from excel into access then from one to many tables

 
 
New Member
Join Date: Jul 2011
Location: Minnesota
Posts: 1
 
      27th Jul 2011
Good day all,

So here is my situation. I have 3 tables already built in access; that have one to many relationships already set up that look like:

PatientInfo Table:
PatientID (Primary Key)
DOB
Address
etc...

IllnessEvent Table:
IllEvtID (Primary Key)
PatientID (Foreign Key)
Facility
etc

MedicalCode Table:
CodeEvntID (Primary Key)
IllEvtID (Foreign Key)
approx 150 Medical Codes, all yes/no


I have approximately 2500 records in an Excel spreadsheet (expect to add another 7,000+ in the near future). I would like to import this into Access and split the data up into the appropriate tables.

For the majority of cases there is a 1:1:1 ratio across the tables;however, there are cases where one patient has multiple illness events, and there are illness events that have multiple coding events.

The medical codes in Excel are stored in text format...in the spreadsheet the header's are just Code 1, Code 2, Code 3, etc... and beneath are the numeric (text format) codes.

In the Access tables there is a yes/no option for every code that I'm interested in (e.g. 781.1->yes/no; 756.3->yes/no, etc...), as well as fields for "other codes" to be typed in that were recieved but aren't directly related to what is being studied. All other fields have header's equivalent to the variable name's in the access tables, and are in the form that they will be stored in.

So, my questions are:
1) What is the best way to bring the data in and sort it into the different tables? (from the bit of reading I've already done in the forums looks like VBA is going to be the best bet, though I have no experience with this...but am eager to learn)

2) is there a way to get access to look at the Medical Codes, recognize "781.1" and then for that entry make the Yes/No option for 781.1 a "Yes" and make it a "No" for all the other, or for someone that has 781.1, and 915.4, yes for both of those and no for everything else, etc...

I realize a full response to some of this might be beyond the scope of these forums, but even something that says "yes, what you pursue is within the realm of the possible" or "no you'll just have to go through a form and update the Yes/No code fields by hand..." or whatever...

Thanks much for any feedback!

-Conner

Last edited by Conner.McLaughlin; 27th Jul 2011 at 07:55 PM..
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import data from excel into access tables Boss Microsoft Access 2 31st Mar 2008 03:26 PM
Extracting Excel Data into New Access Tables jeff Microsoft Access Form Coding 3 27th Jun 2006 02:51 PM
Extracting Excel Data into New Access Tables jeff Microsoft Access VBA Modules 2 23rd Jun 2006 02:46 AM
Data being lost when imported from Excel to Access tables. Microsoft Access Database Table Design 4 18th Mar 2004 02:53 PM
Excel pivot tables using Access as the data source =?Utf-8?B?RGF2aWQgR3JpbXNsZWQ=?= Microsoft Excel Misc 2 11th Feb 2004 01:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:25 AM.