I was hoping someone could possible assist.
I have a form called frmSearchCandidates
The Form opens up as a subform on my main form called FrmContent
I have
FrmHome (Main Form)
FrmContent (Subform On MainForm where all other forms appear in)
Before i made use of the above mentioned, i could do my search via a list box double click on the record, and it would duplicate the record in my relevant form (FrmCandidates)
On Double click the following happend
Expand|Select|Wrap|Line Numbers
- Private Sub SearchList_DblClick(Cancel As Integer)
- On Error GoTo Err_SearchList_DblClick
- Dim db As DAO.Database
- Dim rst As DAO.Recordset
- DoCmd.OpenForm "frmEmpInfo"
- Set rst = Forms![FrmCandidates].Recordset.Clone
- rst.FindFirst "[ID] = " & Me.SearchList
- Forms![FfmCandidates].Bookmark = rst.Bookmark
- DoCmd.Close acForm, Me.Name
- Exit_SearchList_DblClick:
- Exit Sub
- Err_SearchList_DblClick:
- MsgBox Err.Description
- Resume Exit_SearchList_DblClick
- End Sub
FrmHome
FrmContent
It does not seem to work at all
I do get the form to open in my subform.
but it does not open the current record
I changed it to the following
Expand|Select|Wrap|Line Numbers
- Forms!FrmHome!frmContent.SourceObject = "FrmInterview"
- Set rst = Forms!FrmHome!frmContent.Form.Recordset.Clone
- rst.FindFirst "Forms!FrmHome!frmContent.Form.Recordset.[ID] = " & Forms!FrmHome!frmContent.Form.Recordset.SearchList.[ID]
- Forms!FrmHome!frmContent.Form.Recordset.Bookmark = rst.Bookmark
Any advise would be appreciated
Thanks in advance