I thought this odd and thought I'd share.
I ran across the below line of code and in and of itself nothing is too peculiar to me on first glance.
But consider that "frm_z" is unbound. Then consider there is a subform on it that is a continuous form in datasheet view. The criteria is being applied to the subform and works. It seems to me that the criteria should be applied to the main form.
On the one hand this is really cool that you can do it. On the other... What? Anyone have any thoughts as to why or whether it will stay the same in later versions?
I ran across the below line of code and in and of itself nothing is too peculiar to me on first glance.
But consider that "frm_z" is unbound. Then consider there is a subform on it that is a continuous form in datasheet view. The criteria is being applied to the subform and works. It seems to me that the criteria should be applied to the main form.
Code:
DoCmd.OpenForm "frm_z", acNormal, , "[codelist]=Forms![frm_x]![txt_Code]", acFormEdit, acDialog
On the one hand this is really cool that you can do it. On the other... What? Anyone have any thoughts as to why or whether it will stay the same in later versions?