I'm trying to change the recordsource of a subform using a simple button click: by default, the subform's source is one query, when a button is clicked it changes to another query (the same query, but this time also showing stock items with less than 1 in stock...).
Having tried all manner of methods, then having read previous posts, i see the problem may be related to link criteria? Trouble is, i have no link criteria...my subform is not directly linked to the main form - if I do that, then my search facility fails!
I can get around this by using a listbox, instead of a subform (datasheet view), or by having two subforms and doing the old visible.false thing, but both strike me as a bit of a cop out? I like the appearance and navigation properties of a datasheet, so if I can use that i'd like to.
Is there a way i'm missing?
Having tried all manner of methods, then having read previous posts, i see the problem may be related to link criteria? Trouble is, i have no link criteria...my subform is not directly linked to the main form - if I do that, then my search facility fails!
I can get around this by using a listbox, instead of a subform (datasheet view), or by having two subforms and doing the old visible.false thing, but both strike me as a bit of a cop out? I like the appearance and navigation properties of a datasheet, so if I can use that i'd like to.
Is there a way i'm missing?
Comment