Basshopper
Technical User
I have a form called Parameter, It has 3 list boxes all set to multi select call Customer ID, Assembly # and Quote #, How do I run code to build this query or run my current query posted below, This query then pulls the data to a sub form. What is best way??? thanks in advance for your help
Code:
SELECT [t_BOM Part Cross].[Customer ID], [t_BOM Part Cross].[Assembly #], [t_BOM Part Cross].[quote=#], [t_Customer Profile].[Company Name]
FROM [t_Customer Profile] INNER JOIN [t_BOM Part Cross] ON ([t_Customer Profile].[Customer ID] = [t_BOM Part Cross].[Customer ID]) AND ([t_Customer Profile].[Customer ID] = [t_BOM Part Cross].[Customer ID]) AND ([t_Customer Profile].[Customer ID] = [t_BOM Part Cross].[Customer ID]) AND ([t_Customer Profile].[Customer ID] = [t_BOM Part Cross].[Customer ID]) AND ([t_Customer Profile].[Customer ID] = [t_BOM Part Cross].[Customer ID])
GROUP BY [t_BOM Part Cross].[Customer ID], [t_BOM Part Cross].[Assembly #], [t_BOM Part Cross].[quote=#], [t_Customer Profile].[Company Name]
HAVING ((([t_BOM Part Cross].[Customer ID]) Like [Forms]![Parameter]![Customer ID] & "*") AND (([t_BOM Part Cross].[Assembly #]) Like [FORMS]![Parameter]![Assembly #] & "*") AND (([t_BOM Part Cross].[quote=#]) Like [FORMS]![Parameter]![quote=#] & "*"))
ORDER BY [t_BOM Part Cross].[Customer ID], [t_BOM Part Cross].[Assembly #], [t_BOM Part Cross].[quote=#];