Hi,
I currently have a search form that runs a query to filter results when typing into a search field.
When I find the record I want, I can double click and it opens a form based on the ID of the result to the ID form record.
I use this code:
Is it possible to say open form tbl_InvoiceDueDates subform but when it opens instead of opening the main Client form, to get it to open on say TabCtlInvoices?
So it opens the clients form but pre loaded onto the Invoices tab?
Cheers
I currently have a search form that runs a query to filter results when typing into a search field.
When I find the record I want, I can double click and it opens a form based on the ID of the result to the ID form record.
I use this code:
Code:
'Private Sub SearchResults_DblClick(Cancel As Integer)
'If CurrentProject.AllForms("tbl_InvoiceDueDates subform").IsLoaded Then
' DoCmd.Close acForm, "tbl_InvoiceDueDates subform"
'End If
' DoCmd.OpenForm "tbl_InvoiceDueDates subform", acNormal, , "[InvoiceDueID] = " & Me.SearchResults.Column(0)
'End Sub
Is it possible to say open form tbl_InvoiceDueDates subform but when it opens instead of opening the main Client form, to get it to open on say TabCtlInvoices?
So it opens the clients form but pre loaded onto the Invoices tab?
Cheers