connerlowen
Registered User.
- Local time
- Today, 05:33
- Joined
- May 18, 2015
- Messages
- 204
HI,
I have a query that is the row source for a combo box on a form "NewPartF". This form can be a subform on form "NewPartF" or it can be a sub-subform on form "NewAssemblyF". I need the combo box to be filtered whether it is a subform or a sub-subform. When on the subform Access asks me for the parameters for the sub-subform and I do not want it to. How do I get rid of this? Any help would be greatly appreciated. If you need any further clarification please ask and I will do my best to clarify.
I will include my SQL Statement below.
SELECT OptionMetalsListQ.MetalsID, OptionMetalsListQ.PreciousOrBase, OptionMetalsListQ.Metals, OptionMetalsListQ.DateOfPrices
FROM OptionMetalsListQ
WHERE (((OptionMetalsListQ.PreciousOrBase)=[Forms]![NewPartF]![subNewMetalF]![cboPreciousOrBase]) AND ((OptionMetalsListQ.DateOfPrices)=[Forms]![NewPartF]![subNewMetalF]![txtDateOfPrice])) OR (((OptionMetalsListQ.PreciousOrBase)=[Forms]![NewAssemblyF]![subNewPartF]![subNewMetalF]![cboPreciousOrBase]) AND ((OptionMetalsListQ.DateOfPrices)=[Forms]![NewAssemblyF]![subNewPartF]![subNewMetalF]![txtDateOfPrice]));
Thanks,
Conner Owen
I have a query that is the row source for a combo box on a form "NewPartF". This form can be a subform on form "NewPartF" or it can be a sub-subform on form "NewAssemblyF". I need the combo box to be filtered whether it is a subform or a sub-subform. When on the subform Access asks me for the parameters for the sub-subform and I do not want it to. How do I get rid of this? Any help would be greatly appreciated. If you need any further clarification please ask and I will do my best to clarify.
I will include my SQL Statement below.
SELECT OptionMetalsListQ.MetalsID, OptionMetalsListQ.PreciousOrBase, OptionMetalsListQ.Metals, OptionMetalsListQ.DateOfPrices
FROM OptionMetalsListQ
WHERE (((OptionMetalsListQ.PreciousOrBase)=[Forms]![NewPartF]![subNewMetalF]![cboPreciousOrBase]) AND ((OptionMetalsListQ.DateOfPrices)=[Forms]![NewPartF]![subNewMetalF]![txtDateOfPrice])) OR (((OptionMetalsListQ.PreciousOrBase)=[Forms]![NewAssemblyF]![subNewPartF]![subNewMetalF]![cboPreciousOrBase]) AND ((OptionMetalsListQ.DateOfPrices)=[Forms]![NewAssemblyF]![subNewPartF]![subNewMetalF]![txtDateOfPrice]));
Thanks,
Conner Owen