Results 1 to 4 of 4
  1. #1
    pdmax is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    2

    Questionnaire - Confused and stuck

    Hello everyone, I have a query that I thought I could get you help with.



    I am conducting a questionnaire that involves 250 people. Tables have been created within Access, where each table relates to a section of the questionnaire. 8 sections gives me 8 tables. For each table there is a respective form to be filled in.

    In the first form, users enter personal details such as name etc, and then are presumably given unique IDs. What I am stuck with is getting these unique IDs to then automatically transfer to the next form (i.e. the next section in the quesitonnaire) without the user having to enter it in manually.

    Does this make any sense? Is more clarification needed?

    Many thanks

    pd

  2. #2
    Amicron's Avatar
    Amicron is offline Access Guru
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Amherst, New York (near Buffalo)
    Posts
    32
    If all you're gathering are NAME/VALUE responses, you might be better off just using ONE table for ALL of their responses.

    TABLE: ResponseT
    ID, Autonumber
    PersonID, LongInt (the ID for the respondent)
    QuestionID, LongInt (link to the question in the question table)
    Answer, Text (their actual answer)

    Now in your QUESTION table, you can track information about the actual question itself (text of the question, what "section" it is, etc.)

    Is there a good reason why you're using 8 separate tables?

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    This type of thing is usually done with a Main Form, based on the personal data Table, and Subforms, one for each related Table. Using the Wizard to create the Subforms, Access will automatically insert the Primary Key, from the Main Form, into the related Records, on each Subform, as a Foreign Key Field in the Subforms underlying Tables. If these related Tables have more than a couple of Fields apiece, you might want to place each Subform the Page of a Tabbed Control.

    Having said that, a survey/questionnaire is a kind of specialty database. Duane Hookom, MVP, has a survey database that he developed and offers, for download, to be used as a guide for others who are doing the same:

    Duane Hookom's Survey Database

    This app has been used by many, many people, over the years, for just that purpose.

    Quote Originally Posted by Amicron View Post

    ...If all you're gathering are NAME/VALUE responses, you might be better off just using ONE table for ALL of their responses...

    ...Is there a good reason why you're using 8 separate tables...
    Without knowing more about the data scheme, here, it's impossible to tell whether or not the eight Tables are appropriate, but most experienced Access developers will tell you that RecordSources with more than 25-30 Fields apiece suggests that the database is non-normalized.

    Linq ;0)>

  4. #4
    alcapps is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    292
    you can always call the first forms ID. so do you have 8 forms? you can always default txtID = forms!firstFormName!controlnameforID
    or make it one form with 7 tabs.. with sub forms in the tabs. then you can use me.parent.ID

    any way if you have a example database here I can make the changes for you.

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

Similar Threads

  1. Questionnaire Database
    By phool4fool in forum Forms
    Replies: 2
    Last Post: 12-16-2012, 07:40 PM
  2. Questionnaire Database
    By phool4fool in forum Access
    Replies: 1
    Last Post: 12-13-2012, 04:13 PM
  3. Questionnaire DB from Scratch
    By jomby in forum Database Design
    Replies: 4
    Last Post: 05-18-2012, 01:20 AM
  4. Replies: 1
    Last Post: 03-18-2012, 04:00 AM
  5. Sorting a questionnaire by gender
    By uchiha37 in forum Access
    Replies: 1
    Last Post: 10-07-2010, 07:37 AM

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