Results 1 to 11 of 11
  1. #1
    zimonestones is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    6

    Question form

    Hi i very new to the access and i moving my sql database with questions to MS Access and i ve got a little problem. Doest anyone one know how can i check wich question was chosen in the form before going to another question , thanks for any help??

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    This is not enough information to advise. Don't know data structure. Are you working through forms? Will probably require code. Attach project to post for analysis.
    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
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    163
    I thank you want to create a form with a question and their options and correct answer(Hidden fro view).User should click at Option Radio Button in form.
    Option:The a text box may show correct answer and the marks optained.
    User Not allowed to modify option.
    The click at next will show next question in form.
    you need macro or VBA code to do the task as desired.

  4. #4
    zimonestones is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    6
    that's for so quick response. All i need to do is to display the questions from the table table structure is (id, question, answer1, answer2, answer3, answer4, correct_answer) as a form with question and for answers than user can choose one and somehow user should get informed if he answerd corredt or not. I already have a form with the NEXT button and everything works fine i can press the button and it displays next question, now i just need to know how to inform user if he answered correct or not. If it is a few lines of VBA please tell me what i wherre because i have never used VBA i am the php person , thanks very much (ther is no reason for me to attach the db file becouse all i need i think) is a few lines of VBA ,

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    You can have an expression in an unbound textbox ControlSource property. No VBA or macro needed. User will get immediate feedback after making choice. Like:

    =IIf([tbxResponse] = [tbxCorrect], "Correct", "Incorrect")
    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.

  6. #6
    zimonestones is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    6
    Hi June7 , thank you for your post. Can you actually tell me how can i use it, Should i create something like radio buttons and the check somehow which of them was clicked? how do i display a message that the answer was correct or incorrect. The syntax you posted doesn't tell me anything because i ve never used access before and now i need this "simple " thing to be done . Thanks for your help

  7. #7
    zimonestones is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    6
    is there any way i can check what was clicked and compare it with other value? so for exapmle (if d was clicked and correct answer was d that display OK othervise display WRONG

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    What is clicked? A checkbox, a button, a combobox dropdown? I did ask to see your project so I could better advise. Feel like am going in circles.
    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.

  9. #9
    zimonestones is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    6
    Ji June7 , thanks for interest, im attaching example database i want to do, "What clicked?" b- the best would be if i can click on the question and if the correct one was click changes color to green otherwise to red(something like this) but the radio button would do as well, what do you tink what would be best solution for that , thanks, Zimone

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    Okay, explore this sample db. I don't use macros so the coding is VBA. User enters choice in a textbox. This is simplest structure. Radio buttons require Option Group setup and is a little more complicated.

    EDIT: Purpose served, file removed.
    Last edited by June7; 11-27-2011 at 11:18 PM.
    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.

  11. #11
    zimonestones is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    6
    Hi that looks really good, this is what i needed , thanks very much for that, i will have a closer look and try to understand the code. Thanks for your quick help, cheers Zim

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

Similar Threads

  1. form question
    By kathi2005 in forum Forms
    Replies: 7
    Last Post: 11-07-2011, 04:14 PM
  2. Simple Form Question
    By gl2295164 in forum Access
    Replies: 1
    Last Post: 07-31-2011, 09:16 PM
  3. Pop-Up Form Question
    By DKF in forum Forms
    Replies: 1
    Last Post: 07-02-2010, 05:57 PM
  4. Sub-Form Question
    By amcglone in forum Forms
    Replies: 2
    Last Post: 06-07-2010, 10:33 AM
  5. Question about Form
    By ACM in forum Programming
    Replies: 3
    Last Post: 10-09-2009, 04:25 PM

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