D
Donna
I have a frmCustomer with a subform frmCustomerTour. When the user selects
the tour for the customer, a customer price is calculated and saved in a
textbox "customerprice". I have a form frmAccount with a subform
frmTransaction. This form tracks all financial transactions for the various
tours for this customer (charges, payments, credits, etc.)
I would like to put a command button on the frmCustomerTour that would
automatically open the frmAccount & its subform frmTransaction and
automatically fill in the charge for the tour.
This is the code I have so far for that button:
Dim stLinkCriteria As String, form1 As String, form2 As String
Dim form3 As String, form4 As String
form1 = "frmAccount"
form2 = "frmTransaction"
form3 = "frmCustomer"
form4 = "frmCustomerTour"
stLinkCriteria = "[CID]=" & Me![CID]
DoCmd.OpenForm form1, , , stLinkCriteria
form1!form2.Form![CustomerPrice] = form3!form4.Form![charge]
I keep getting the error message "qualifier must be a collection" and form4
is highlighted. Can you please tell me what I'm doing wrong?
the tour for the customer, a customer price is calculated and saved in a
textbox "customerprice". I have a form frmAccount with a subform
frmTransaction. This form tracks all financial transactions for the various
tours for this customer (charges, payments, credits, etc.)
I would like to put a command button on the frmCustomerTour that would
automatically open the frmAccount & its subform frmTransaction and
automatically fill in the charge for the tour.
This is the code I have so far for that button:
Dim stLinkCriteria As String, form1 As String, form2 As String
Dim form3 As String, form4 As String
form1 = "frmAccount"
form2 = "frmTransaction"
form3 = "frmCustomer"
form4 = "frmCustomerTour"
stLinkCriteria = "[CID]=" & Me![CID]
DoCmd.OpenForm form1, , , stLinkCriteria
form1!form2.Form![CustomerPrice] = form3!form4.Form![charge]
I keep getting the error message "qualifier must be a collection" and form4
is highlighted. Can you please tell me what I'm doing wrong?