Results 1 to 2 of 2
  1. #1
    Pragmatic is offline Novice
    Windows XP Access 2000
    Join Date
    Sep 2011
    Posts
    9

    Passing value from parent to child form

    Hello all, I have 2 table as follows:



    Table 1: StudentID, Student Name

    Table 2: CourseId, StudentID, Course Name

    What I want to achieve is when I complete student's details in the student form there is a button on the form which asks "Do you want to enter the course details" when this button is pressed it should open up another form with default StudentID and generate a auto courseID and allow the user to input the rest of the course details. Please note I am using Access 2003. Any advice help with example will be highly appreciated.

  2. #2
    Amicron's Avatar
    Amicron is offline Access Guru
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Amherst, New York (near Buffalo)
    Posts
    31
    If you want to use two different fields, you can just set the Default Value of the StudentID on the COURSE table to:

    =Forms!StudentTable!StudentID

    However, I would recommend setting this up as a Form/Subform. Set up the LINKED FIELDS properly in the form settings and Access will handle this for you.

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

Similar Threads

  1. Replies: 2
    Last Post: 09-16-2011, 06:11 PM
  2. Problem using Parent/Child Form/Subform
    By EvanRosenlieb in forum Forms
    Replies: 4
    Last Post: 06-27-2011, 05:25 PM
  3. Child/Parent relationship
    By ErnieS in forum Forms
    Replies: 1
    Last Post: 08-20-2010, 01:22 PM
  4. Calculation using Child and Parent
    By SamanthaSamuels in forum Reports
    Replies: 3
    Last Post: 08-17-2010, 11:07 AM
  5. Parent/Child subform
    By Jerry8989 in forum Forms
    Replies: 1
    Last Post: 09-18-2009, 07:27 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