PaulCooper
Programmer
I have a form, with a sub-form which works well.
When I add a new record, and add a new customer, (the first field to be entered) the sub-form does not update unless I move off that record and move back.
I am trying to make this happen by code. (The sub-form contains data that would help complete the rest of the main form so I would like it to update as soon as it "knows" who the customer is.)
I've tried doCmd.save (because I thought the sub-form/main-form link might not be working until the data became "hard"
then I tried this (cboCustomer is on the main form)
i.e. when you leave the customer picklist it requeries the sub-form to force an update.
and I get the error "Access cannot find the form frmAssets"
so I tried
and get ther error "Type mismatch"
any pointers?
Regards
Paul
When I add a new record, and add a new customer, (the first field to be entered) the sub-form does not update unless I move off that record and move back.
I am trying to make this happen by code. (The sub-form contains data that would help complete the rest of the main form so I would like it to update as soon as it "knows" who the customer is.)
I've tried doCmd.save (because I thought the sub-form/main-form link might not be working until the data became "hard"
then I tried this (cboCustomer is on the main form)
Code:
Private Sub cboCustomer_Exit(Cancel As Integer)
Forms![frmAssets].Requery
End Sub
and I get the error "Access cannot find the form frmAssets"
so I tried
Code:
Private Sub cboCustomer_Exit(Cancel As Integer)
Forms([frmAssets]).Requery
End Sub
any pointers?
Regards
Paul