Hello Everyone,
I have a form consisting of several dynamic drop-downs, the last of which contains a concatenated value of a query.
Product Name + Product Part Number
Now, once you select the product from the drop-down list. I am trying to display all of the information related to that product.
(For example, text boxes called 'ProdName' to display the Product Name as it is pulled from the access query)
I am calling a query named 'ProdPicker Query', I need to pass it the selected value of the dropdown (ItemDrop1), and retrieve back the row for that item.
Following this, how do I manipulate and place the data I retrieve into textboxes such as 'ProdName' listed above?
On VBA side, I have the following set up.
=======
Dim dbClient As Database
Dim qdf As QueryDef
Set dbClient = CurrentDb
Set qdf = dbClient.QueryDefs("ProdPicker Query")
qdf.Parameters!ProdFullName = Me.ItemDrop1
qdf.Execute
=========
The error I recieve is "Cannot execute a select query."
========
Provided below is my access query 'ProdPicker Query'. I have tested the query by itself (passing it the needed parameter) and it works with flying colors
SELECT [ProdList Query].[ID], [ProdList Query].[ProdName], [ProdList Query].[ProdPartNo], [ProdList Query].[ProdDescription], [ProdList Query].[CatName], [ProdList Query].[StatusName], [ProdList Query].[BrandName], ([ProdList Query].ProdName & " " & [ProdList Query].ProdPartNo) AS ProdFullName
FROM [ProdList Query]
WHERE ProdFullName=Forms![Product Configuration]!ItemDrop1;
========
Any help would be greatly appreciated.
Thanks,
Scyclone