Results 1 to 4 of 4
  1. #1
    shah1419 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    30

    insert/select values against selection of combo box

    Dear all,
    i want to insert obtain marks of the subjects.please find the attached my db for your kind review. when i select combo value my requirment is to insert the all records which associate with the combo. but when i select combo value it will happen nothing. pls see the required picture...also....


    Click image for larger version. 

Name:	123.JPG 
Views:	6 
Size:	42.9 KB 
ID:	12415db1.zip

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I do not understand what you are asking. You only have one combo box on your form 'Test'. That combo box is a class. in the after update of that combo box you have some recordset cloning going on which I do not think you need.

    What are you trying to accomplish.

    Are you trying to bring up the grades for the listed student whenever someone changes the class?

    Or are you trying to do something else?

    Your database construction is not good which may also be hampering you.

    You should have:
    A table for your students
    A table for the classes available (any class available at the school/temple/mosque)
    A table that lists the classes a student took (holds the FK of the student table and the FK of the classes table and has a PK of it's own)
    A table that stores the grades for each one of the tests taken in that class

    this is at the very least.

    Your structure is forcing each student to have one class only which I doubt is your intent.

  3. #3
    shah1419 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    30

    insert value through combo box

    Quote Originally Posted by rpeare View Post
    I do not understand what you are asking. You only have one combo box on your form 'Test'. That combo box is a class. in the after update of that combo box you have some recordset cloning going on which I do not think you need.

    What are you trying to accomplish.

    Are you trying to bring up the grades for the listed student whenever someone changes the class?

    Or are you trying to do something else?

    Your database construction is not good which may also be hampering you.

    You should have:
    A table for your students
    A table for the classes available (any class available at the school/temple/mosque)
    A table that lists the classes a student took (holds the FK of the student table and the FK of the classes table and has a PK of it's own)
    A table that stores the grades for each one of the tests taken in that class

    this is at the very least.

    Your structure is forcing each student to have one class only which I doubt is your intent.
    -----------------------
    please help me to re design the datbase or send me the sample database ...

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    wikipedia article about normalizing a database (there are literally millions of articles about normalizing databases out there)

    https://en.wikipedia.org/wiki/Database_normalization

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

Similar Threads

  1. Replies: 15
    Last Post: 03-17-2013, 07:40 PM
  2. Blank Values in Combo Box Selection
    By CementCarver in forum Access
    Replies: 1
    Last Post: 02-28-2013, 01:11 PM
  3. How do I Insert Values w/ Not Exists sub select?
    By toddbailey in forum Queries
    Replies: 1
    Last Post: 05-01-2012, 12:05 PM
  4. Replies: 1
    Last Post: 08-26-2009, 10:45 AM
  5. Replies: 3
    Last Post: 02-26-2009, 10:17 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