Results 1 to 8 of 8
  1. #1
    zzzjoshzzz is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    8

    I want to create an interface for people to look at answers to pre-written questions.

    I'm pretty new to Access and have been searching for a while to find this:
    I have a set of, let's say, 300 pieces of data.
    Each piece of data has a Question, and Answer to that Question, and what Topic that Question is related to.
    I need to do two things:
    1) Create some sort of interface where a user can click a topic and then select a question and see an answer


    and
    2) Have the user be able to submit a new Question and Answer and have them be able to select the Topic that they think it goes in (Bonus points if there's a good way to keep track of what was recently added and also points if they can create a new Topic)

    If it isn't spelled out, I'll still appreciate it and try to figure it out but I'd prefer you remember my amateur status!
    =)

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    All that is possible but you need a good grasp of relational database principles, Access functionality, and maybe even programming concepts along with understanding macros and/or VBA.

    An interface for user to enter criteria and then view related info means applying filter to recordset.

    Keeping track of what was recently added means creating records. Creating a new Topic is also creating record(s).
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    zzzjoshzzz is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    8
    Quote Originally Posted by June7 View Post
    All that is possible but you need a good grasp of relational database principles, Access functionality, and maybe even programming concepts along with understanding macros and/or VBA.

    An interface for user to enter criteria and then view related info means applying filter to recordset.

    Keeping track of what was recently added means creating records. Creating a new Topic is also creating record(s).

    So I need to find a way to apply filters to recordsets using dropdown menus. I have a small amount of programming background and I know basic theory behind relational database - I just am not familiar enough with Access yet.

    Thanks for the reply though! I'll try to work off what you posted.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Look at tutorials in http://www.datapigtechnologies.com/AccessMain.htm especially the ones about filtering.

    Also: http://allenbrowne.com/ser-62code.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    zzzjoshzzz is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    8
    So I've struggled throughout the day and I've got a lot of what I need. I have a combobox that limits the selections of another combobox. My last step for now is to have a text box that shows the answer when I've selected the Question after selecting the topic. My problem is that I can't use "Row Source" with text boxes. Any ideas?

    EDIT: I'm trying to use DLookUp but having troubles writing up the exact code and where to put it.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Are question and answer in the same record in same table?

    The question combobox can be multi-column. One of the columns can be the answer. This column can be hidden or visible. An expression in textbox ControlSource can reference the answer column by index. Index begins with 0. So if the answer is in column 2:

    =[comboboxname].Column(1)

    See the DataPig link for a tutorial on multi-column combobox.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    zzzjoshzzz is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    8
    Quote Originally Posted by June7 View Post
    Are question and answer in the same record in same table?

    The question combobox can be multi-column. One of the columns can be the answer. This column can be hidden or visible. An expression in textbox ControlSource can reference the answer column by index. Index begins with 0. So if the answer is in column 2:

    =[comboboxname].Column(1)

    See the DataPig link for a tutorial on multi-column combobox.

    Thanks! That did it!

    One last thing and I'm done with the form:

    Is there an easy way to code a button so that a user can suggest a new Question/Answer Set or a new Topic/Category?

    It can't go directly in the database though, I'd need to be able to approve it.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Why not put in the same table? Have a field for "Approved" (user need not ever see this field). The combobox RowSource query can be filtered to include only the approved questions.

    Have the button open a form for user to input the new topic/category. The Approved field can default to No. Then you just need to review all the records that are not yet approved.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-04-2014, 08:23 AM
  2. create user interface from table
    By mer in forum Forms
    Replies: 5
    Last Post: 07-24-2011, 08:07 PM
  3. How Do I...denote who answers what questions...
    By kennyrogersjr in forum Access
    Replies: 2
    Last Post: 01-01-2011, 11:29 AM
  4. Keying in Test answers to Access DB from Written Test
    By CityOfKalamazoo in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:58 AM
  5. Replies: 2
    Last Post: 06-25-2006, 09:04 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