J
johnlute
Access 2003 and Win2000
I'm trying to open a form [frmPackaging] via a listbox [cbMainSelect]
from another form [frmKEYSTONEeditids] and then set a control
[frmPackaging].[cbqryTypes] to the value in Column 2 of
[cbMainSelect]:
DoCmd.OpenForm "frmPackaging" Forms![frmPackaging].Form![cbqryTypes] =
Forms![KEYSTONEeditids].Form![cbMainSelect].Column(2)
This works fine. [frmPackaging] opens and [cbqryTypes] displays the
value in Column 2 of [cbMainSelect].
The challenge I can't resolve is filtering [frmPackaging] to the value
that I'm "pushing" into [cbqryTypes]. [cbqryTypes] is also used to
select values to filter [frmPackaging] using an AfterUpdate:
Forms![frmPackaging].Form.Refresh
Forms![frmPackaging].Form.Requery
Of course, the Record Source for [frmPackaging] has a criteria:
[Forms]![frmPackaging].[Form]![cbqryTypes] Or [Forms]![frmPackaging].
[Form]![cbqryTypes] Is Null
Clicking [cbMainSelect] works fine to open [frmPackaging] except that
the value that's pushed into it results in the form NOT being
filtered.
I've tried several things but nothing works. I'm not even sure that
what I'm currently doing is the best approach.
Does anyone have any ideas how to resolve?
Thanks for your time!
I'm trying to open a form [frmPackaging] via a listbox [cbMainSelect]
from another form [frmKEYSTONEeditids] and then set a control
[frmPackaging].[cbqryTypes] to the value in Column 2 of
[cbMainSelect]:
DoCmd.OpenForm "frmPackaging" Forms![frmPackaging].Form![cbqryTypes] =
Forms![KEYSTONEeditids].Form![cbMainSelect].Column(2)
This works fine. [frmPackaging] opens and [cbqryTypes] displays the
value in Column 2 of [cbMainSelect].
The challenge I can't resolve is filtering [frmPackaging] to the value
that I'm "pushing" into [cbqryTypes]. [cbqryTypes] is also used to
select values to filter [frmPackaging] using an AfterUpdate:
Forms![frmPackaging].Form.Refresh
Forms![frmPackaging].Form.Requery
Of course, the Record Source for [frmPackaging] has a criteria:
[Forms]![frmPackaging].[Form]![cbqryTypes] Or [Forms]![frmPackaging].
[Form]![cbqryTypes] Is Null
Clicking [cbMainSelect] works fine to open [frmPackaging] except that
the value that's pushed into it results in the form NOT being
filtered.
I've tried several things but nothing works. I'm not even sure that
what I'm currently doing is the best approach.
Does anyone have any ideas how to resolve?
Thanks for your time!