Results 1 to 11 of 11
  1. #1
    Tommo is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    42

    data not generating in child table.

    So I am trying to set up a DB for a dance school.

    I have created a table for charges. In this table is my StudentID and ClassID (the keys from my main tables)

    I have done a lookup from the classID for the term cost which is a field in the Classes Table.

    It just gives me a dropdown which i can select from the list..

    FYI; I have enforced integrity and the field is lookingup the Class ID & term cost with the classID width to 0.

    Let me know if this makes no sense.

    Ta

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    did you make a subForm?
    make a form with the subtable.

    in the master form, assign the form to the subform box
    set subform.sourceobject = frmCharges-sub
    set LINK MASTER FIELDS = StudentID
    set LINK CHILD FIELDS = StudentID

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Sounds good. If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  4. #4
    Tommo is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    42
    Right here it is.

    iD Studios Finchley RegisterSTUDENTS REMOVED.zip

    I have had a good fight with it. What am I doing wrong guys.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Looking at Relationships window. Not seeing need for tblCharges. tblClasses has the TermCost. Build query that links tblEnrollments with tblClasses to retrieve the cost for that class enrollment.

    Showing a second instance of tblClasses that is linked to tblCharges on TermCost field. That makes no sense.

    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention. Better field names would be: TeacherID_FK, EmailAddress, IsFreeClass.
    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
    Tommo is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    42
    Ok cool.

    Thanks for all of this.

    I Have some work to do.

  7. #7
    Tommo is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    42
    I have another question if possible.

    I am trying to think it through so my payments work well.

    At the moment if i add a payment the Class ID is just a dropdown and it does not restrict me to the classes that student is in.

    Cheers

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    That is known as cascading or dependent combobox. Review: http://datapigtechnologies.com/flash...combobox2.html

    In your case the combobox RowSource will have to reference tblEnrollments, maybe even include tblClasses in the SQL statement if you need additional info about the class.

    Where are you entering payments?
    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
    Tommo is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    42
    I am talking about within the table.

    It is going to be within a form within the student data entry area. I haven't quite worked it out yet.

    I do appreciate I am in over my head lol.

    I think once the Payments is in a subform I can control the combobox like you said. Correct??

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Right, dependent comboboxes can only be on form, can't do that in table. Lots of threads discussing this topic. Here is a recent one https://www.accessforums.net/forms/t...box-54959.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.

  11. #11
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. Replies: 17
    Last Post: 10-27-2014, 04:15 AM
  2. Child Record Created, but won't display in child form
    By CementCarver in forum Programming
    Replies: 1
    Last Post: 04-10-2013, 12:42 PM
  3. Replies: 3
    Last Post: 12-14-2012, 11:26 AM
  4. Replies: 3
    Last Post: 08-09-2012, 01:49 PM
  5. Pulling most recent data from child table
    By davidv43 in forum Access
    Replies: 0
    Last Post: 02-07-2009, 11:36 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