Ok, I’m currently trying to ultimately solve a query problem on a sort able form. The displayed data is based off three tables...<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
Materials<o></o>
M_ID / primary key (one to many with Build.B_Mat)<o></o>
M_Name / name of the material (filtered by referring to check boxes on the form)<o></o>
M_Disc / description of the material<o></o>
M_Stock / amount in stock<o></o>
<o></o>
Build<o></o>
B_ID / primary key<o></o>
B_Product / foreign key (one to many with Product.P_ID)<o></o>
B_Mat / foreign key (many to one with Materials.M_ID)<o></o>
B_Amt / amount of material needed for this particular product<o></o>
<o></o>
Product<o></o>
P_ID / primary key (many to one with Build.B_Product<o></o>
P_Name / product name<o></o>
*many other descriptive fields*<o></o>
<o></o>
<o></o>
For now this works, but I’ve been asked to eventually include the ability to change the comparative operator in the materials condition from OR to AND via dropdown or some other control. The only way I can see to do this is by vba and I’m at a loss.<o></o>
<o></o>
I can get as far as creating a temp table in vba based on Materials.M_ID filtered by the check boxes on the form but I’m not sure how to continue from there...<o></o>
<o></o>
Materials<o></o>
M_ID / primary key (one to many with Build.B_Mat)<o></o>
M_Name / name of the material (filtered by referring to check boxes on the form)<o></o>
M_Disc / description of the material<o></o>
M_Stock / amount in stock<o></o>
<o></o>
Build<o></o>
B_ID / primary key<o></o>
B_Product / foreign key (one to many with Product.P_ID)<o></o>
B_Mat / foreign key (many to one with Materials.M_ID)<o></o>
B_Amt / amount of material needed for this particular product<o></o>
<o></o>
Product<o></o>
P_ID / primary key (many to one with Build.B_Product<o></o>
P_Name / product name<o></o>
*many other descriptive fields*<o></o>
<o></o>
<o></o>
For now this works, but I’ve been asked to eventually include the ability to change the comparative operator in the materials condition from OR to AND via dropdown or some other control. The only way I can see to do this is by vba and I’m at a loss.<o></o>
<o></o>
I can get as far as creating a temp table in vba based on Materials.M_ID filtered by the check boxes on the form but I’m not sure how to continue from there...<o></o>