Query - compare answers to the same questions from only ID-X in first table to all ID's in second table

Hello!
I am designing a database for a summer exchange school. There are two main tables – Students and Host Families. I am struggling to create a command that would connect any chosen student with possible suitable host families.
To determine, who is suitable, I created a table of 15 Yes/No questions, which are answered both by students and families. Now I would like to add a command button to the student form to create a query which would (1) search through all of the families and
their answers and (2) compare these with the ones the chosen student gave (e.g. the student whose form is open). In the end it should (3) list all the families according to number of matching answers and also (4) show where they don’t match.
Basically, I am completely lost here.
Any help would be much appreciated! Thank you in advance,
Vit

The reason this is harder than it needs to be is because you have violated important database design rules by creating what's called a Repeating Group.
Rather you should have a couple of tables:
Stock list of questions:
tblQuestions
QuestionID autonumber PK
QuestionText text(255) required uniqueindex
Answers given by students:
tblAnswers_Students
QuestionID long int required PK
StudentID long int required PK
Answer yesno required default=false
Similar for tblAnswers_GuestFamilies
Then put the tables on the Relationships diagram, draw the relations, and in the dialog that comes up check the box to enforce the relation.
Then see if you can figure it out with this correct database design.
-Tom. Microsoft Access MVP

Similar Messages

  • Yes i keep ashing the same question i keep getting the same answer and it is not resolving the problem

    YES I KEEP ASKING THE SAME QUESTION I KEEP GETTING THE SAME ANSWER AND IT IS NOT RESOLVING THE PROBLEM AND CHAT KEEPS SENDING ME BACK TO THE FORUMS THEY SAY THEIR EXPERTS WILL BE ABLE TO RESOLVE THE PROBLEM BUT IT IS NOT RESOLVED YET I KEEP GETTING THE SAME ANSWER FROM FORUM EXPERTS WELL THAT IS NOT WORKING I NEED A SOLUTION THAT WILL WORK I PAID FOR THIS AND I WANT TO USE IT BUT I CANNOT
    TRYING TO ACTIVATE A trial version of photoshop elements 7.0 disc worked till in the middle got an erroe fur and animalskin file missing checked dvd and it had a scratch so 3 times i downloaded a trial version of photoshop elements 7.0 from adobe.com but when try to activate get invalid serial number the website said have your serial number ready to activate which i do because i am getting it right from the dvd case it is registered i am signed in and chat just keeps telling me it is too old try the forums which i have many times with no resolution but they mark it as assumed resolved premeir elements 7.0 from the same dvd case is on why can't i activate trial version of photoshop elements 7.0 my computer crashed and i had to restore then i am now trying to put the programs
    maybe i can buy or exchange the dvd of photoshop elements 7.0 without because my serial number is good so i maybe just need a new disc being this disc is scratched i've got 40 to 50 hours into this 1 trial version of photoshop elements 7.0 more than i have in the whole computer restore and all the other programs i have restored have windows xp service pack 3 or 3.5 and net framework 4.0 and all the important and required updates i also have an open case which i am getting no where either case #213952591 which i responded to within 4 days as not resolved but i am still getting no help activating this trial version of photoshop elements 7.0
    24 Views
    Tags:

    YES I KEEP ASKING THE SAME QUESTION I KEEP GETTING THE SAME ANSWER AND IT IS NOT RESOLVING THE PROBLEM AND CHAT KEEPS SENDING ME BACK TO THE FORUMS THEY SAY THEIR EXPERTS WILL BE ABLE TO RESOLVE THE PROBLEM BUT IT IS NOT RESOLVED YET I KEEP GETTING THE SAME ANSWER FROM FORUM EXPERTS WELL THAT IS NOT WORKING I NEED A SOLUTION THAT WILL WORK I PAID FOR THIS AND I WANT TO USE IT BUT I CANNOT
    TRYING TO ACTIVATE A trial version of photoshop elements 7.0 disc worked till in the middle got an erroe fur and animalskin file missing checked dvd and it had a scratch so 3 times i downloaded a trial version of photoshop elements 7.0 from adobe.com but when try to activate get invalid serial number the website said have your serial number ready to activate which i do because i am getting it right from the dvd case it is registered i am signed in and chat just keeps telling me it is too old try the forums which i have many times with no resolution but they mark it as assumed resolved premeir elements 7.0 from the same dvd case is on why can't i activate trial version of photoshop elements 7.0 my computer crashed and i had to restore then i am now trying to put the programs
    maybe i can buy or exchange the dvd of photoshop elements 7.0 without because my serial number is good so i maybe just need a new disc being this disc is scratched i've got 40 to 50 hours into this 1 trial version of photoshop elements 7.0 more than i have in the whole computer restore and all the other programs i have restored have windows xp service pack 3 or 3.5 and net framework 4.0 and all the important and required updates i also have an open case which i am getting no where either case #213952591 which i responded to within 4 days as not resolved but i am still getting no help activating this trial version of photoshop elements 7.0
    24 Views
    Tags:

  • Multiple reads of the same data from Multiprovider by Query (Bex)

    Hello, guys!
    We're having issue with performance of a query built on Multiprivider. During our investigation, we've found out that within one run of a Query, it several times refers to InfoProvider for the same data (see image attached).
    Do you have ideas what can be a reason for multiply reads of the same data from Multipvovider?

    Hello Nikita,
    By "copy of a query" i meant something like this as shown below :
    *Kindly click on the screenshot for a better view.
    1) See the highlighted portions below in the screenshot . See Query 2 highlighted and name of the BEx query highlighted.
    2) See the highlighted portions . See Query 3 highlighted and name of the BEx query highlighted.
    As you can see from the above screenshots i have used the same BEx query 2 times by the name of Query 2 & Query 3 . Infact i have not attached the complete screenhsot . In that i have used it 6 times.
    I have to analyze this a bit in detail but what i am guessing is that when this WEBi is called the single BEx is also called multiple times. And hence it hits the Info Provider multiple times resulting in a decreased performance.
    But this does not mean that this is wrong approach. There are various areas where you can improve for example :
    1) Either improve your BEx query if possible or use aggregates or something like that .
    2) Use the  Query stripping setting in WEBi so that unused dimensions and measures are not pulled resulting in an improved performance. It's switched on by default.
    Thanks!!
    Regards,
    Ashutosh Singh

  • HT2589 I forgot the answers for the security questions, so i'm not able to purchase any thing from apple store. What can i do?

    I forgot the answers for the security questions, so i'm not able to purchase any thing from apple store. What can i do?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page should let you reset them : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • HT5312 My stops because of the wrong answer to the secret question, and I want to use it for evil application from Apple Store?

    My stops because of the wrong answer to the secret question, and I want to use it for evil application from Apple Store?

    Hello mr sami,
    Thank you for the details of the issue you are experiencing with your security questions.  I found an article with some useful information if you cannot remember the answers to your security questions:
    What should I do if I don't remember the answers to my Apple ID security questions?
    Try answering them at least once to see if you can get them right, even if you are not sure you remember the answers to your security questions.
    If you are confident you can't remember them, try one of the following:
    If you have three security questions and a rescue email address
    sign in to My Apple ID and select the Password and Security tab to send an email to your rescue email address to reset your security questions and answers.
    If you have one security question and you know your Apple ID passwordsign in to My Apple ID and select the Password and Security tab to reset your security question.
    If you have one security question, but don't remember your Apple ID password
    contact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    Note: If you have forgotten your password and answer your security questions incorrectly too many times in a row, you will be unable to try to answer your security questions for a period of time. During that time you will not be able to reset your password and will not have access to your account.
    You can find the full article here:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    If you continue to have issues, please contact our Account Security Team as outlined in this article:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT204266 I forgot the answers to the security questions and need it to buy things from the apple store in my new iPhone, how can I resolve it?  Thank you

    I forgot the answers to the security questions and need it to buy things from the apple store in my new iPhone, how can I resolve it?
    Thank you

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • I was referred to this site when I looked for answers to why I got Fatal Error message with error code c0000005 when trying to upload photos to my computer. I see that someone else asked the same question, 90 people viewed but no answer given?

    I was referred to this site when I got Fatal Error message Error code c0000005 while trying to upload photos to computer. Someone else asked the same question in this forum, 90 people viewed the question but it was never answered?

    It looks to me like it is a problem on your Windows computer not being able to start an application. See the following link to Microsoft Community support (although the specifics of the problem in that case may not be applicable) and also note all of the "Related Content" at the upper right side of that link (and there may be others if you search that forum). http://answers.microsoft.com/en-us/windows/forum/windows_7-system/the-applicatio n-is-unable-to-start-correctly/bbb9c037-77b3-4fae-93b9-ded70f7f9a17
    It may help if you know or can determine which program Windows is trying to open when you upload photos -- there can be many different ones and it can be set by the user. If you are using Windows 7, you may need to check your Autoplay settings. There are some instructions in the following link that may help and that discuss how you can use Windows Explorer to manually transfer the photos: http://support.apple.com/kb/HT4083

  • HT5312 I don't remember the answer to the security question, but after i have asked apple to send the verification mail; there is still no email from Apple. What should I do? :( :(

    I don't remember the answer to the security question, but after i have asked apple to send the verification mail; there is still no email from Apple. What should I do?

    You've checked the spam folder on your rescue email account and tried clicking the reset link again to re-request it ? You could also contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699

  • I forgot the answer to the security questions and i forgot the email i put there to resend the link so i can change it. i want to close my apple ID and open a new one with the same email could i?

    i forgot the answer to the security questions and i forgot the email i put there to resend the link so i can change it. i want to close my apple ID and open a new one with the same email could i?

    i live in saudi arabia and i tried calling them and letting them call me but they said that it is unable to my country. ***** i don't know what to do!

  • HT204053 Mistakenly I changed my Apple ID when I left Italy for UK. when I want to update application for my mac and iPad, they ask me for the old ID password which I have forgotten At the same time I have forgotten the answers to the security questions e

    After having created an apple ID with Italian itunes I moved to UK and I mistakenly created a new Apple ID. However, when I want to update the application on my Ipad and mac computer I am asked fo the old password which I have fogotten. I have also forgotten the answers to the security questions. I made a mistake also with the email i gave and so i cant verify a new password that i want to create. How can you help me?

    Normally you need to call Apple Care for the country where the ID is located. You have changed countries and complicated it by making a new ID. I don't know what to suggest beyond calling Apple Care for Italy and asking them to help you recover the old ID.

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • The same filename from a sender to a receiver file adapter - SP14

    Hi Expers,
    I Have Gone through the link which is given bu Michal.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Here My Questions are.........
    1.Should we give any file name in the receiver side Adapter in this scenario.?????
    2.How wil be the Sender and Receiver Communication channel Parameters????
      What Are they???????
    Please Clarify me...
    Regards
    Khanna

    Hi Rajesh,
    Is your query related to sending the file name from the source xml document to the reciever file adapter. If so this can be achieved.
    Pls. do the following.
    1. In the mapping program that you are using populate the filename coming from the source into the target root element.
    2.Sender adapters can write adapter-specific attributes to the message header; these can then be evaluated at configuration time
    3. To change the adapter-specific attributes of the message header by using message mappings, you access the required classes of the mapping API by using a mapping runtime constant.
    <b>Note: You donot need to specify any filename in the receiver communication channel.</b>
    To access the classes DynamicConfiguration and DynamicConfigurationKey by using the mapping runtime constant DYNAMIC_CONFIGURATION, use the method getTransformationParameters() of the container object.
    Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    You donot need to hard code the value of the filename in the file adapter for your interface.
    In SXMB_MONI, when you see the pipeline services you would see that the value of the filename is populated in the message payload.
    Thanks
    Indranil

  • Controlling the same output from multiple locations in vi

    Hi
    I have a very basic question which I do not seem to find the answer to though.
    When programming a VI for measurement and control using a standard DAQ device, for example 6281 I
    often want to control the same digital out pin from various places in the program.
    F.ex. In the beginning I want P0,0 to be high, then later somewhere deep in the program in a while loop I want
    to set P0,0 to low. How do I do this. I keep getting the message that the resource is reserved.
    This I have the same question with AI, AO and Digital in.
    The DAQassistant does not work and doing this more manually by creating a task, stopping it and clearing it has been problematic.
    Can anyone help? Hopefully with a demonstration VI if you have it?
    Thanks for reading all the way down though  

    You should create a functional global that stores tasks for each port.
    In the following image I have some code that should work.
    It looks up the addressed port and creates a new task if needed, otherwise it will call the old task.
    Be sure to call this VI with 'Stop?'=True at the end of your program.
    Ton
    Message Edited by TonP on 10-11-2008 08:41 PM
    Message Edited by TonP on 10-11-2008 08:42 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    DO access.png ‏15 KB

  • URGENT HELP:I want that the query should return in the same way

    I have a query
    select id from tableid where id in(350,241,251)
    This returns me in
    241,251,350
    I want that the query should return in the same way as specified in "in" clause.
    ie output should be in 350,241,251.
    I would really appreciate if anyone can help.

    You can achieve what you want like this:
    select id from tableid where id in (350,241,251)
    order by decode(id,350,1,241,2,251,3)in this example the decode explicitly defines the order you want to retrieve the records in.

  • Sorry raising the same question: idoc and SLD

    forum(dont get irritated as me raising the same question) ,
    clarify it
    when i make a business system corresponding to a SAP system(Say Z), in the SLD, do i need to name its logical system name in a way thats similar to the way which the system Z appends in the Sender partner while sending an IDOC to my XI, 
    means if sender's system  Z  has system-id SD1 and client 330,   should i make a business system with logical system name SD1CLNT,
    so that when an IDOC reaches my XI for system Z, it can identify that the IDOC has reached from a particular system, coz i believe when an IDOC is sent from system Z, the sender partner is appended as "System-id"CLNT"client no."..
    is it so????

    Hi,
    When you see the moni trace , it is just info, so no error, and for the metadata always uses the sender Port , through port only the metadata will be passed, this was configured in IDX2.
    Next whether the IDoc was reached to XI or not , we can see in sender side WE02 and direction is 1 and with the basic type see the status is 12 or not .. and next see in IDX5 in R3 instance of XI.
    See the error statuses and respective solutions
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    Idoc settings https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    idoc erros - http://help.sap.com/saphelp_nw04s/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm
    IDoc erros troubleshooting - /people/raja.thangamani/blog/2007/07/19/troubleshooting-of-ale-process
    Regards
    Chilla
    <i>reward points if it is helpful..</i>

Maybe you are looking for