Results 1 to 5 of 5
  1. #1
    midian777 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Location
    Lubbock TX
    Posts
    3

    Angry Access TS database?

    Hello everyone and I apologize if this is not in the right forum to start. I just got my hands on 2007 access, and I am currently creating a database. I was hopeing it would be easier to use since I am very familiar with excel, but I have discover access really is another type of animal.

    Heres the concept:
    I need to create a trouble shooting database that has customer go step by step through a process.

    example: unplug your cable modem from electricity. Is this done?
    example answer if (yes) proceeds to new trouble shooting question.
    Example answer if (no) unplug the electrical cable from the wall to the modem. is this done?



    So the whole premise ios easy to understand step by step question based on yes and no answer. If you answer yes it takes you to another question or solution, if you answer no it will potentially do the same thing?

    Any guidance at all in these areas would be greatly appricated.

  2. #2
    midian777 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Location
    Lubbock TX
    Posts
    3
    ung sorry about all the typos.... mah fingers are getting ahead of mah brain.!

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Are they all yes/no questions?
    will the user ever enter any data into a textbox?

  4. #4
    midian777 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Location
    Lubbock TX
    Posts
    3
    Yes all the questions are built yes and no.


    Quote Originally Posted by TheShabz View Post
    Are they all yes/no questions?
    will the user ever enter any data into a textbox?

  5. #5
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    So you need 3 tables to start with.
    1. tblUser (user info)
    2. tblQuestions (questions)
    3. tblUserQuestion (junction table for many to many relationship)

    lets assume you have 5 questions.

    Set up a form that contains a textbox, an option group and a button. The form's OnLoad event should use a DLookup to enter the contents of the first question into the textbox (Dlookup("question","tblQuestions","questionID = 1")). The button's OnClick event will run a For loop such that:

    Dim i as Integer

    For i = 1 to 5
    if (optAnswer = 1) then
    'SQL to update tblUserQuestion with the question ID and answer
    else
    'SQL to update tblUserQuestion with the question ID and alternate answer
    end if
    'Dlookup to populate the txtbox with question with ID i + 1
    Next

    After that you have to decide what criteria will provide a solution and end the sequence.

    I used a little pseudo code there. I'm assuming a bit of table structure and vba knowledge here. Google is your friend for exact syntax. It's best to play around with it until you understand it. There are most likely cleaner ways to do this with more clever code, so again, experiment until you get it and post back with more questions.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-17-2013, 02:44 AM
  2. Replies: 3
    Last Post: 05-15-2011, 10:52 PM
  3. Saving Access 2010 database to Access 2007
    By Bajaz001 in forum Access
    Replies: 2
    Last Post: 04-11-2011, 12:59 PM
  4. Migration from Access 2003 database to Access 2007 database.
    By cyclus2 in forum Import/Export Data
    Replies: 1
    Last Post: 09-10-2010, 11:43 AM
  5. new to access need help on database
    By Miketallica in forum Access
    Replies: 1
    Last Post: 04-27-2010, 07:03 AM

Tags for this Thread

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