I am having issues with opening a form with subforms in another way.
Currently it is set to have the user start with the customer form.
When the customer has been located in which a quote will be entered the user would then click on a button to open another form for data entry.
The customer form (Customers) has a subform (QuoteSummary) that lists all quotes if any.
In this subform the user would double-click on the quotenumber to view the form (CustomQuotes with subform CustomQuotesDetails) with the quoted data for making edits, etc ....
Well, i have another form with a list of just the quotenumbers and customer info (list view) so when the user needs to go back to make edits to a quote the user can open this form and search on just the quotenumber instead.
The user needs to open the same form with the quoted data (frmCustomQuotes).
Issue ... this form has this procedure:
and driven by
I can't edit the Dbl-click from the ByQuote form to open the CustomQuotes because of the OnActivate.
what do i need to change and how to make the CustomQuotes open from the ByQuote on the Dbl-click Event Procedure?
Currently it is set to have the user start with the customer form.
When the customer has been located in which a quote will be entered the user would then click on a button to open another form for data entry.
The customer form (Customers) has a subform (QuoteSummary) that lists all quotes if any.
In this subform the user would double-click on the quotenumber to view the form (CustomQuotes with subform CustomQuotesDetails) with the quoted data for making edits, etc ....
Well, i have another form with a list of just the quotenumbers and customer info (list view) so when the user needs to go back to make edits to a quote the user can open this form and search on just the quotenumber instead.
The user needs to open the same form with the quoted data (frmCustomQuotes).
Issue ... this form has this procedure:
Code:
Private Sub Form_Activate()
On Error GoTo Err_Form_Activate
Me.Requery
If IsLoaded("Customers") Then
If Forms![Customers]![QuoteSummary Subform].Form.RecordsetClone.RecordCount > 0 Then
DoCmd.GoToControl "QuoteID"
DoCmd.FindRecord Forms![Customers]![QuoteSummary Subform].Form![QuoteID]
End If
End If
Exit_Form_Activate:
Exit Sub
Err_Form_Activate:
MsgBox Err.Description
Resume Exit_Form_Activate
End Sub
and driven by
Code:
Private Sub CustomQuoteNumber_DblClick(Cancel As Integer)
ViewOrder
End Sub
Private Sub ViewOrder()
On Error GoTo Err_ViewOrder
DoCmd.OpenForm "CustomQuotes"
Exit_ViewOrder:
Exit Sub
Err_ViewOrder:
MsgBox Err.Description
Resume Exit_ViewOrder
End Sub
I can't edit the Dbl-click from the ByQuote form to open the CustomQuotes because of the OnActivate.
Code:
Private Sub QuoteID_DblClick(Cancel As Integer)
On Error GoTo Err_DblClick
Me.Requery
DoCmd.FindRecord Forms![ByQuote].Form![QuoteID]
Exit_DblClick:
Exit Sub
Err_DblClick:
MsgBox Err.Description
Resume Exit_DblClick
End Sub
what do i need to change and how to make the CustomQuotes open from the ByQuote on the Dbl-click Event Procedure?