Hi,
I'm trying to pass a value from a subform to a form.
My subform is a filterable lookup form for companies.
So when someone point at a company he/she can click on a button to 'select' that company to filter the main form
I use a button with the following procedure in the subform
DoCmd.ApplyFilter , "Forms![FRM_COMPANY]!
I'm trying to pass a value from a subform to a form.
My subform is a filterable lookup form for companies.
So when someone point at a company he/she can click on a button to 'select' that company to filter the main form
I use a button with the following procedure in the subform
DoCmd.ApplyFilter , "Forms![FRM_COMPANY]!
Code:
=
Forms![FRM_COMPANY]![FRM_COMPANYLOOKUP]![CODE]"
My main form is Frm_company, my subform is Frm_companylookup.
When I push the button first time my record pointer goes back to the first record in the subform. Within the main form the record also jump backs to the first value . But these two have nothing in common
when clicking the second time the form filter is being activated and automatically shows a new record (data-entry).
I also put a knob in the main form to pass the value but with the same strange effects. I've put my subform on a page/tab.
If you know (another) way to overcome this problem I would be thankful