R
RSGinCA
I have 4 forms.
In the 1st form, the user selects a product from a list and presses a button to
go to FormA. In the code for the button, I execute a DoCmd.OpenForm in order
to open FormA AND in that command I specify a 'where' condition that specifies
that product.
Then, in FormA the user presses a button to go to FormB, and from FormB he
presses a button to go to FormC. In these cases, the code again executes the
DoCmd.OpenForm command, but WITHOUT any 'where' condition. However, in these
cases the forms act as if a 'where' condition has been specified, by displaying
information for the product that was originally specified.
What's going on? Is this behavior that I can count on in my forms programming?
Or is it a fluke, or what? Are there situations where this won't work? If I
leave the code the way it is, is there a chance that I'll get a surprise
someday?
Rick
In the 1st form, the user selects a product from a list and presses a button to
go to FormA. In the code for the button, I execute a DoCmd.OpenForm in order
to open FormA AND in that command I specify a 'where' condition that specifies
that product.
Then, in FormA the user presses a button to go to FormB, and from FormB he
presses a button to go to FormC. In these cases, the code again executes the
DoCmd.OpenForm command, but WITHOUT any 'where' condition. However, in these
cases the forms act as if a 'where' condition has been specified, by displaying
information for the product that was originally specified.
What's going on? Is this behavior that I can count on in my forms programming?
Or is it a fluke, or what? Are there situations where this won't work? If I
leave the code the way it is, is there a chance that I'll get a surprise
someday?
Rick