Hey everyone. It's good to be on the board.
I have a question. I am trying to take a list box with the values ('A', 'B', 'C') and then run a query based on what is chosen in the list box. I have the list box set to "MultiSelect: Extended" since you can pick more than on letter. The problem arises here:
SELECT DISTINCTROW Customer.CONVERGENT_ACCT_ID, Customer.BILL_ID, Customer.CUSTOMER_NAME, Customer.BILL_PERIOD, Customer.AM_USER_MAINTAINED, Customer.ACCT_MARKING, Customer.HIERARCHY_CUST, Hierarchy.LEVEL_1, Hierarchy.LEVEL_2, Hierarchy.LEVEL_3, Hierarchy.LEVEL_4, Hierarchy.LEVEL_5, BTN.BTN, BTN.HIERARCHY_ID, BTN.ACTIVATION_IND, BTN.SERVICE_PROVIDER, BTN.COMMENTS
FROM (Customer INNER JOIN Hierarchy ON (Customer.BILL_ID = Hierarchy.BILL_ID) AND (Customer.CONVERGENT_ACCT_ID = Hierarchy.CONVERGENT_ACCT_ID)) INNER JOIN BTN ON Hierarchy.HIERARCHY_ID = BTN.HIERARCHY_ID
WHERE (((BTN.ACTIVATION_IND)='A') AND ((BTN.SERVICE_PROVIDER)=[Forms]![Hierarchy Document by Region]![Service_Provider']));
It's that last part: ((BTN.SERVICE_PROVIDER)=[Forms]![Hierarchy Document by Region]![Service_Provider'])); that I need to fix. It works fine if I choose one letter from the list box (only if I set the List Box to MultiSelect: None) but if I chose more than one the query doesn't go through. I have tried putting single and double-quotes around the [Forms]...but no luck.
THANKS for ANY help!
-Tim
I have a question. I am trying to take a list box with the values ('A', 'B', 'C') and then run a query based on what is chosen in the list box. I have the list box set to "MultiSelect: Extended" since you can pick more than on letter. The problem arises here:
SELECT DISTINCTROW Customer.CONVERGENT_ACCT_ID, Customer.BILL_ID, Customer.CUSTOMER_NAME, Customer.BILL_PERIOD, Customer.AM_USER_MAINTAINED, Customer.ACCT_MARKING, Customer.HIERARCHY_CUST, Hierarchy.LEVEL_1, Hierarchy.LEVEL_2, Hierarchy.LEVEL_3, Hierarchy.LEVEL_4, Hierarchy.LEVEL_5, BTN.BTN, BTN.HIERARCHY_ID, BTN.ACTIVATION_IND, BTN.SERVICE_PROVIDER, BTN.COMMENTS
FROM (Customer INNER JOIN Hierarchy ON (Customer.BILL_ID = Hierarchy.BILL_ID) AND (Customer.CONVERGENT_ACCT_ID = Hierarchy.CONVERGENT_ACCT_ID)) INNER JOIN BTN ON Hierarchy.HIERARCHY_ID = BTN.HIERARCHY_ID
WHERE (((BTN.ACTIVATION_IND)='A') AND ((BTN.SERVICE_PROVIDER)=[Forms]![Hierarchy Document by Region]![Service_Provider']));
It's that last part: ((BTN.SERVICE_PROVIDER)=[Forms]![Hierarchy Document by Region]![Service_Provider'])); that I need to fix. It works fine if I choose one letter from the list box (only if I set the List Box to MultiSelect: None) but if I chose more than one the query doesn't go through. I have tried putting single and double-quotes around the [Forms]...but no luck.
THANKS for ANY help!
-Tim