Hi All,
This seems like a really simple thing and that's why I am pulling my hair out because I cannot get it to work.
I have a simple form with 4 comboboxes, 3 of them are cascading. All 4 boxes are bound to the same table - no join. And in fact, these are the only 4 fields in the table.
What I want to do is have the user enter values in the 3 cascading comboboxes and then have the 4th box populated with the unique ID, based on a query of the other 3 boxes. The 3 values will always be collectively unique and should return only one unique ID #. Here is my query:
SELECT tblIssue.MyIssueID
FROM tblIssue
WHERE (((tblIssue.ProductID)=[Forms]![frmNewIssue]![ProductID]) AND ((tblIssue.CategoryID)=[Forms]![frmNewIssue]![CategoryID]) AND ((tblIssue.IssueName)=[Forms]![frmNewIssue]![cmboIssueName]));
My query always returns 0 values although I know it should return one value. The field IssueName is a text field and the others are integers, if that makes any difference (I have played with the parameters to no avail).
If anyone spots anything wrong or has any suggestions it would be much appreciated! Thanks in advance.
Arch
This seems like a really simple thing and that's why I am pulling my hair out because I cannot get it to work.
I have a simple form with 4 comboboxes, 3 of them are cascading. All 4 boxes are bound to the same table - no join. And in fact, these are the only 4 fields in the table.
What I want to do is have the user enter values in the 3 cascading comboboxes and then have the 4th box populated with the unique ID, based on a query of the other 3 boxes. The 3 values will always be collectively unique and should return only one unique ID #. Here is my query:
SELECT tblIssue.MyIssueID
FROM tblIssue
WHERE (((tblIssue.ProductID)=[Forms]![frmNewIssue]![ProductID]) AND ((tblIssue.CategoryID)=[Forms]![frmNewIssue]![CategoryID]) AND ((tblIssue.IssueName)=[Forms]![frmNewIssue]![cmboIssueName]));
My query always returns 0 values although I know it should return one value. The field IssueName is a text field and the others are integers, if that makes any difference (I have played with the parameters to no avail).
If anyone spots anything wrong or has any suggestions it would be much appreciated! Thanks in advance.
Arch