OK, so what I want to do is probably very simple but I need some help. I would like be able to put something in the criteria section of a query I created that tells it to pull the information that was put into the form I created. For example I have a combo box that allows them to select different product codes, and I want my query to filter the database based on the product code they entered. Any help would be tremendously appreciated!
Access Querry Problem
Collapse
X
-
Originally posted by ChaseCoxOK, so what I want to do is probably very simple but I need some help. I would like be able to put something in the criteria section of a query I created that tells it to pull the information that was put into the form I created. For example I have a combo box that allows them to select different product codes, and I want my query to filter the database based on the product code they entered. Any help would be tremendously appreciated!
DoCmd.OpenQuery "Ur Query Name"
Me.Ur Combobox Name = ""
Combo box name u can find in property window others tab. -
Originally posted by ChaseCoxOK, so what I want to do is probably very simple but I need some help. I would like be able to put something in the criteria section of a query I created that tells it to pull the information that was put into the form I created. For example I have a combo box that allows them to select different product codes, and I want my query to filter the database based on the product code they entered. Any help would be tremendously appreciated!Comment
-
Originally posted by ChaseCoxOK, so what I want to do is probably very simple but I need some help. I would like be able to put something in the criteria section of a query I created that tells it to pull the information that was put into the form I created. For example I have a combo box that allows them to select different product codes, and I want my query to filter the database based on the product code they entered. Any help would be tremendously appreciated!
In the criteria row of the appropriate field of the underlying Query for your Form place =Forms![frmTest]![cboTest]Comment
Comment