I have created a form to search through company quotes (frmSearchJobs) and display results in a listbox (lstResults) on the same form.
In addition, I have created a second form (frmTabbed) that contains 3 tabs (tabDetails, tabOptions, tabContacts).
I would like frmTabbed to open to the selected record when double-clicking on a quote in lstResults on frmSearchJobs.
When frmTabbed opens, the first tab you see is tabDetails, which contains a subform subJobDetails.
I have finally gotten the code to a point where when I double-click on a record on frmSearchJobs.lstResults that frmTabbed will open with no error messages.
However, when this opens, my tabs or subform no longer show, so it is just a blank screen. I am trying to connect the records using txtDetQuote.value (Quote_ID)
Code:
Private Sub lstResults_DblClick(Cancel As Integer) DoCmd.OpenForm "frmTabbed", acNormal, , "[txtDetQuote]" = " & Me.lstResults.Column(0) & "
DoCmd.Close acForm, "frmsearchjobs", acSaveNo
'DoCmd.OpenForm Form_frmTabbed, acFormEdit, , Form_frmTabbed!subJobDetails.Form!txtDetQuote = Me.lstResults.Value.Column(0)
End Sub
Additionally, I would like to get tabOptions and tabContacts to display the same record as tabDetails will display. (once that actually works)
Could one of you please take a look and tell me if you see what I am doing wrong here?
I have attached a copy (with edited data) for you to review.
Thank you for any help you can provide!!!ForumHelpUFP.zip