Results 1 to 13 of 13
  1. #1
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051

    comboboxes multiple notinlist event???

    Hi all



    I currently have this:

    Code:
    Private Sub cboTopicQ01_NotInList(NewData As String, Response As Integer)
    Call AddNewtoList(NewData, Response)
    End Sub
    Private Sub cboTopicQ02_NotInList(NewData As String, Response As Integer)
    Call AddNewtoList(NewData, Response)
    End Sub
    Private Sub cboTopicQ03_NotInList(NewData As String, Response As Integer)
    Call AddNewtoList(NewData, Response)
    End Sub

    or rather I have 30 of them

    Does anyone know of an easier way?
    I've enclosed a copy of my database in case it helps

    Working_pastpapersDB.zip

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    When I encounter repeating names in a table it usually means there is probably something wrong with the design. I've looked at your db Andy and I'm not really sure what you are trying to achieve. Perhaps a little tutorial would help me.

  3. #3
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    https://www.accessforums.net/showthread.php?t=65788

    I'm planning ahead for next year....

    I'd like to record whether pupils master the skills in a topic over time so that I can then assist with their final revision

    The practise exam papers they take have 28 questions on different topics

    the attached DB is my attempts at recording which topics are being tested in which exam paper.



    So I look at q1, its on probability so I store that in my tbltopics and then store it as the topic being examined in Q1 in the tblExam field

    Happy to answer more and many thanks for taking a look

  4. #4
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    RuralGuy is pointing out that you have repeating groups of fields - your test questions/topics should not be unique columns; rather, they should be unique records. Once you resolve the database design issue, then you can move on to resolving NotInList (http://allenbrowne.com/ser-27-01.html)

  5. #5
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Thanks jwhite

    Back to drawing board I guess

    Any suggestions/advice more than welcome. Design is not my specialism as you can see

  6. #6
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    We need to know more about what manual processes you are automating, and the purpose of creating a database for it. Explanation with sample data would be good. The database design you currently have looks incomplete for any kind of process.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I'm thinking one table for TestNumbers and another table for the Topics for each test with a FK to the TestNumber table. Use a Form/SubForm to edit the Topics table with the TestNumber FK as the LinkMaster/ChildField.

  8. #8
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Got this...
    Each paper has about 20 questions covering 1 topic
    Don't understand this.......
    and each question may be out of anything up to 5 marks


    Maybe a starting structure like this:
    Click image for larger version. 

Name:	Andy49.jpg 
Views:	14 
Size:	32.6 KB 
ID:	28492

  9. #9
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Thanks ssanfu. The questions are allocated a number of marks depending on their difficulty and length. Short easy questions worth 1. Longer more complex worth up to 7. Totalling 100% of course.

    1 question = 1 topic
    1 question may be worth 1 point or anything up to 7 points

  10. #10
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Maybe change the field tblExams.NumOfQuestions to tblExams.TotalNumOfPoints. Then you could calculate the the percentage correct...???

  11. #11
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Click image for larger version. 

Name:	relationships.png 
Views:	10 
Size:	17.6 KB 
ID:	28501

    I'm not sure

    I have this at the moment

    I'd value anyone's thoughts

  12. #12
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You have tblExamPaper and tblScores in a 1-to-1 relatioinship??? One pupil can have one score and one score goes to one pupil??




    Maybe
    Click image for larger version. 

Name:	Andy49_2.jpg 
Views:	8 
Size:	35.1 KB 
ID:	28504

  13. #13
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Ok yes that looks better. Thanks. Now to design a form to enter the specific stuff for each exam.


    Sent from my iPhone using Tapatalk

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

Similar Threads

  1. NotInlist Event not working properly
    By thanosgr in forum Programming
    Replies: 2
    Last Post: 06-14-2012, 01:46 PM
  2. NotInList event
    By jgelpi16 in forum Programming
    Replies: 2
    Last Post: 04-13-2011, 09:10 AM
  3. NotInList event issue
    By elinde in forum Forms
    Replies: 1
    Last Post: 04-01-2011, 08:43 PM
  4. Cancelling the NotInList event
    By Remster in forum Programming
    Replies: 12
    Last Post: 11-21-2010, 10:12 AM
  5. Troubleshoot NotInList Event Procedure
    By skyrise in forum Programming
    Replies: 4
    Last Post: 02-23-2009, 06:06 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