Question : How do I link a record in one sub-form to a record in another sub-form

I have attached a sample database.

I have a tabbed form within my main form.  Each of the tabs contains a sub-form - one for applications, the other for fee payment.  The first sub-form (in tab 1) lists all the applications made and is linked to the main form.  The second sub-form (in tab 2) will ultimately hold all the fee payments made to a particular institution once an offer has been made and accepted.

Each sub-form works by either (a) clicking “new” ceates a new application; or (b) clicking the word “edit” opens up an existing application

Once an application has been accepted, I want to enter a fee payment and link that to the particular application that has been accepted.

I would really like it to work the following way:

1.  From the deposits sub-form, click "new".  This will bring up a list of university applications that the student has applied to.  

2.  The user will click the relevant university that the deposit is to be paid to.  The relevant form will display.  

3.  The data is entered and, when clicking close, part of the entered information is displayed in the sub-form (as it does with the applications sub-form).

I have set up the relationship with the applications and fees table, but am stuck on the join type (which I believe should be set to join type 2 – Include ALL records from 'tblFees' and only those records from 'tblApplications' where the joined fields are equal.).

What join type should join the fees table to the applications table and what type of query should be constructed?

Any help, as always, gratefully received.
Attachments:
 
Demo Database
 

Answer : How do I link a record in one sub-form to a record in another sub-form

oh and i got rid of the macro you had. you dont need it. click on the microsoft button in the upper far left corner of access goto "access options" next to the exit button. then click on current database. then you will see a combo box named display form. choose the form you want the application to open to.

this database should get you on the right track. take a look at the tables. how i removed the relationship how i call a global variable. look at all of the forms properties and events.

hope all this helps

good luck
Random Solutions  
 
programming4us programming4us