Results 1 to 2 of 2
  1. #1
    Tman is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    7

    Query / table row as form field questions

    Hi all,



    quick question I just want confirmed (beginner present!) - can you base a form on a query? eg If i make a query with a number of 'questions' can these questions each be added to the form and if so where does the response data go when the user submits this as the form is not bound to a table?

    big story short I have a fairly big survey type db I am wanting to make, there is around 250 questions in total, broken up into 8 tables/categories. I was told instead of having a separate question tables for each criteria and a form based off each, I should have one table with a field 'question txt' which contains all questions, and another field being 'section', which i would then assign to each question, however in form design view the form bases the questions off table 'fields', which in the tables are 'question txt', not the questions as they are rows in that table, if that makes sense?!!!

    any advice appreciated

    Cheers
    TB

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I'm not sure about the second part (the survey db) but as far as using form for enter criteria into a query, heres how:

    1. create a textbox (or combobox or w/e) and name it (the object itself, not the label).
    2. in the query builder, enter Forms!formname!objectname (where formname is the name of your form and object name is the name of the textbox, combobox, etc) in the criteria line.

    Now when you run the query, it will look for the value stored in that object in the form. I think that's what youre trying to do?

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

Similar Threads

  1. Replies: 3
    Last Post: 10-30-2013, 11:42 AM
  2. Updating Table field from Form
    By Kunuk in forum Access
    Replies: 0
    Last Post: 02-26-2009, 11:41 PM
  3. Loop a table to use field in query
    By jdubp in forum Programming
    Replies: 0
    Last Post: 03-04-2008, 11:48 AM
  4. Update table from calculated field in a form
    By BernardKane in forum Forms
    Replies: 3
    Last Post: 11-28-2006, 09:48 AM
  5. Replies: 0
    Last Post: 09-25-2006, 03:42 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