KrebsATM02AG
MIS
I've got a form with 2 combo boxes in the header that controls the tabs in a form. I can use text fields and sub forms and link to the combo boxes, but how do i link a list box???
For example the 2 combo boxes do the samething, just looking up the person by last name or ss#. So in a list box i have SS_No, Account_Id, Fund_No, and Allocation_Pct. The problem is it pulls up all that data in that query and I only want the data that corresponds to the data in the control boxes in the header. Here is my sql in the Row Source:
SELECT tblAllocations.SS_No, tblAllocations.Account_Id, tblAllocations.Fund_No, tblAllocations.Allocation_Pct
FROM tblAllocations
WHERE (((tblAllocations.SS_No)=[SS_No]) AND (([tblAllocations.Account_Id])="TTSA");
and i have SS_No in the Control Source
What am i doing wrong?????
For example the 2 combo boxes do the samething, just looking up the person by last name or ss#. So in a list box i have SS_No, Account_Id, Fund_No, and Allocation_Pct. The problem is it pulls up all that data in that query and I only want the data that corresponds to the data in the control boxes in the header. Here is my sql in the Row Source:
SELECT tblAllocations.SS_No, tblAllocations.Account_Id, tblAllocations.Fund_No, tblAllocations.Allocation_Pct
FROM tblAllocations
WHERE (((tblAllocations.SS_No)=[SS_No]) AND (([tblAllocations.Account_Id])="TTSA");
and i have SS_No in the Control Source
What am i doing wrong?????