I am trying to use the docmd.gotorecord command to display a certain record in a subform by selecting a record on a total different form.
Here is what happens. A user enters a candidate and after entering the surname a form appears listing any matches on the system. If the candidate is there then the user clicks on their reference number and the original Course Booking form should display with the candidate subform display all that candidates details.
The problem is getting the subform to display the chosen candidate. When I use
DoCmd.GoToRecord acDataForm, "Candidate Subform", acGoTo, Candidate_Number
Candidate Subform isn't Open. The Candidate_Number above stores the click candidate reference.
Can anyone help??
Craig
Here is what happens. A user enters a candidate and after entering the surname a form appears listing any matches on the system. If the candidate is there then the user clicks on their reference number and the original Course Booking form should display with the candidate subform display all that candidates details.
The problem is getting the subform to display the chosen candidate. When I use
DoCmd.GoToRecord acDataForm, "Candidate Subform", acGoTo, Candidate_Number
Candidate Subform isn't Open. The Candidate_Number above stores the click candidate reference.
Can anyone help??
Craig