G
Guest
hi all,
I have to forms"expense reports by patient" and "invoice register"
i want to creat a button in the form" expense reports by patient" that will
open the other form"invoice register" and show only data for the same patient.
in the form"invoice register" there is a subform"invoice details" where i
enter patient name and other inv details.
so i want this form to show those records that belongs to this patient "in
the subform"
i have tried this way but not succeeded.
strDocName = "INVOICE REGISTER"
strLinkCriteria = "Forms![INVOICE REGISTER]![invoice
details].Form.[PATIENT]= FORMS![Expense Reports by patient].form.[PATIENT]"
DoCmd.OpenForm strDocName, , , strLinkCriteria
any one can tell me what is the problem with this strlinkcriteria?
I have to forms"expense reports by patient" and "invoice register"
i want to creat a button in the form" expense reports by patient" that will
open the other form"invoice register" and show only data for the same patient.
in the form"invoice register" there is a subform"invoice details" where i
enter patient name and other inv details.
so i want this form to show those records that belongs to this patient "in
the subform"
i have tried this way but not succeeded.
strDocName = "INVOICE REGISTER"
strLinkCriteria = "Forms![INVOICE REGISTER]![invoice
details].Form.[PATIENT]= FORMS![Expense Reports by patient].form.[PATIENT]"
DoCmd.OpenForm strDocName, , , strLinkCriteria
any one can tell me what is the problem with this strlinkcriteria?