Link from a Field in One SubForm to Another SubForm (Already Opened)

BWagner10

New Member
Joined
Jan 12, 2019
Messages
3
I have a form titled "frmHomePage" which holds three subforms. ""frmReportsSubForm", frmStudentSchedule", and frmStudentBio". When I enter a new student in the "...Bio" subform I would like to go directly to the same student in the "...Schedule" subform. To this end I have a button which hold a macro to (almost) do this. Here is where the problem lies.


When I created the macro I was asked what fields I am linking. Within the Student Bio information I link the StudentID to the StudentID in the Schedule. The code entered is: ="[StudentID]=" & "'" & [StudentID] & "'" which opens the correct subform but opens it as a separate form. I would like it to open in the already opened subform.

I am using Access 2010, Windows 7.

Thanks if advance for any and all help.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I would like it to open in the already opened subform.

The already opened subform should already be linked, right? It's always a little confusing when dealing with form design (there are so many options). but if you are adding a new student then there wouldn't be anything to show anyway, right? What would you "see" if there's nothing there?

Or are you not actually entering new students but just navigating to an existing student? (you said ... "when I enter a new student in the "...Bio" subform", so to me that sounds like entering new students).
 
Upvote 0
Yes, I am entering new students, then I use the frmStudentSchedule, open as a subform, to input their schedule of classes. At this time I input the new student information, copy the Student ID from the StudentBio subform, switch to the ...Schedule subform, then paste the Student ID in the search field. All I am trying to do is eliminate the three steps to get to the correct record in the ...Schedule subform.
 
Upvote 0
Generally if child (subform) is linked to parent (main form) then you are linked. Just input away. But the subform has to be linked to the main form on the ids.
 
Upvote 0
Everything is linked, only it seems to me I am opening a second instance of the desired form.
The form, "frmStudentSchedule", does open. However, it opens as a second form. It is available as a child form in a tab, subform to the parent "frmHomePage". When I click on the button in the frmStudentBio subform is when the ...Schedule form opens outside of the "frmHomePage". Everything works fine, I am trying to get the link to navigate to the child ...Schedule instead of a seperate...Schedule.
 
Upvote 0
What kind of code or macro is in the button? What does the button do? It sounds like it does the wrong thing, basically. So seems like you need to fix the button or just use the tabs without the button.
 
Upvote 0

Forum statistics

Threads
1,213,522
Messages
6,114,112
Members
448,549
Latest member
brianhfield

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top