Results 1 to 4 of 4
  1. #1
    markdd1961 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    2

    trouble understanding relationships between three? tables

    I am new to Access and have been googling for an answer, but I think I am just using the wrong words to find the solution what I am trying to accomplish

    I have an excel sheet of survey data. Each row is the set of responses from one person and a unique generated token for each row.
    several questions allow the person to enter in open ended-text.

    Click image for larger version. 

Name:	eampledata.jpg 
Views:	22 
Size:	132.2 KB 
ID:	30696

    I would like to add one or more "codes", words the summarize the text. Those codes exist in a separate table:

    Click image for larger version. 

Name:	codes.JPG 
Views:	22 
Size:	15.4 KB 
ID:	30698

    I want to associate the answer in column "b" (open_test_entry1) of the raw data table with one or more codes from column "A" in the code table. Then I would like to have a third table that saves the Unique Token from column "A" (generated_token) with the codes entered for correct row and column of the (open_test_entry1).

    Click image for larger version. 

Name:	enter_codes.JPG 
Views:	22 
Size:	60.8 KB 
ID:	30699

    I have created the raw data table and the codes table. I added a column to the raw data table that calls a look up to the codebook table. I have made that work with a form, but it seems an inelegant solution. I don't want to modify the raw data table at all (i.e. add columns). But for the life of me I cant understand how to create a table that pulls in the token (unique identifier) from a row and the correct test from the cell in that row, then add codes to that text and store them into a table so the two are forever linked.

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    I want to associate the answer in column "b" (open_test_entry1) of the raw data table with one or more codes from column "A" in the code table.
    Leaving the table structure aside for the moment - how are you going to associate the free-form text with the code(s)? Do you do it manually, or do you have an algorithm to determine what the code(s) should be?

    Before you go any further, please consider you data structure. It is not properly normalized (if you don't know what that is, let us know and we find some links for it), in that in each row of the Excel spreadsheet you have repeating occurrances of the same type of data, i.e. a question response. This is very commonly the way Excel is laid out, and it is good for that, but Access is not Excel and doesn't work the same way. Keeping data unnormalized can make extracting information cumbersome, to say the least. For example, if you wanted to know which text responses were rated "worst", and which set of "row" they were in, how would you do it?

    A normalized response table would look something like this, at a minimum:

    Token
    Question_ID
    Response


    For the codes, you will need a third table, as you point out. The fact that your raw data is not properly normalized will pose some difficulties, but essentially, the table should look something like this:

    Questionnaire_Token (from the main table)
    Question_ID
    Code

    (Any given reponse should have only one rating code assigned to it, in my opinion)

    First difficulty is question_ID. You don't record the question number anywhere, which is a problem, but you do at least have a field name. Normalization will fix that issue.

    You might want to reorder your codes from best to work, with a numeric value for each, so that retrieving results which were rated as "good or higher" is much easier.

    There is a lot to think about there, I know, but getting things right now will save a lot of headaches later.

    (But I still would like to know how a text response gets a rating code assigned to it!)

    Post back for any further help you need. Good luck with your project.

  3. #3
    markdd1961 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    2
    Ah, sorry for the confusion. I have to use dummy data for privacy reasons. The codes are associated manually. I am a cultural anthropologist trying to use Access for a form of analysis called "grounded theory." Each entry under the "open_test" entry columns are indeed unique responses. They can be one word or several paragraphs. The codes are not on a scale, that was a poor example. The each "code" is a word (or two words together) meant to summarize the concepts that appear in an entry. For example if someone writes "Well, in the morning I usually stop n the break-room first and get some coffee, then check the prices for the NASDAQ opening. After that I check my schedule to see if I have any rubes...I mean clients coming in I can fleece out of their life savings." I might code that Morning_routine, Coffee, NASDAQ. (again, terrible examples), The codes are derived by making several passes of the responses for each question and they emerge out of the data itself. (bottom up as opposed to top-down categories). With each pass the codes are refined so that each person on the analytical team is using the same code for the same concept. Human and subjective rather than Algorithm.... Does this clarify?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I agree with John-G's comments. I looked at your latest post and googled to find this on GT
    I think that getting your tables and relationships is important, as it always is in database. But, I think the analysis of text to arrive at "1,2 or 3 word summaries" consistently will be a major issue. Hopefully, you can test/refine this manual procedure for consistency regardless of the database design. I don't know if you can search for keywords or synonyms.

    English (any language) phrases can bee difficult to summarize nto a few words , and especially consistently with different reviewers.
    eg. "Time flies like an arrow. House flies like garbage"

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Trouble understanding the logic behind database structure
    By connorwilliamsm in forum Database Design
    Replies: 4
    Last Post: 08-07-2017, 02:34 PM
  2. Understanding relationships
    By Skywalk669 in forum Database Design
    Replies: 4
    Last Post: 05-01-2012, 03:08 PM
  3. trouble understanding expression
    By mejia.j88 in forum Queries
    Replies: 4
    Last Post: 02-01-2012, 03:00 PM
  4. Replies: 1
    Last Post: 07-27-2010, 08:02 AM
  5. Replies: 7
    Last Post: 06-16-2010, 09:19 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums