L
lmv
I have a subform (continous)
"OrdersList" based on "productsTTL" table.
Form OrdersTEST is based on a query
SELECT Orders.*, [Order Details].ProductID, [Order Details].Quantity, [Order
Details].UnitPrice, CCur([Order Details].UnitPrice*[Order
Details].Quantity*(1-[Order Details].Discount)/100)*100 AS ExtendedPrice, *
FROM (Orders INNER JOIN Categories ON Orders.CategoryID =
Categories.CategoryID) INNER JOIN [Order Details] ON Orders.OrderID = [Order
Details].OrderID;
Is it possible to dblclick /or cmd button on the ProductName field in the
subform & have it populate some fields in the parent form ie. ProductName on
the sub would fill parent "OrdersTEST" cboProductID which has the following
Record source:
SELECT DISTINCTROW [ProductID], [ProductName] FROM ProductsTTL ORDER BY
[ProductName];
I tried using a cmd button
stDocName = "OrdersTEST2"
stLinkCriteria = "[ProductID]=" & Me![ProductName] & """"
DoCmd.OpenForm stDocName, , , stLinkCriteria
But I get an error ...syntax error missing operator...
The combobox on the parent OrdersTEST form doesn't do what I need because it
doesn't filter by category and it is better if the person can see what they
need to choose from a LIST. So the subform becomes the list which is bound by
categoryID to the parent so it is only listing those things in that category.
In the dbl click event what would be the VBA to accomplish this?
And does the parent need code as well?
ALSO:
Could I leave it so they could use either option? Click on the subform or
use the drop down.
Thanks!
"OrdersList" based on "productsTTL" table.
Form OrdersTEST is based on a query
SELECT Orders.*, [Order Details].ProductID, [Order Details].Quantity, [Order
Details].UnitPrice, CCur([Order Details].UnitPrice*[Order
Details].Quantity*(1-[Order Details].Discount)/100)*100 AS ExtendedPrice, *
FROM (Orders INNER JOIN Categories ON Orders.CategoryID =
Categories.CategoryID) INNER JOIN [Order Details] ON Orders.OrderID = [Order
Details].OrderID;
Is it possible to dblclick /or cmd button on the ProductName field in the
subform & have it populate some fields in the parent form ie. ProductName on
the sub would fill parent "OrdersTEST" cboProductID which has the following
Record source:
SELECT DISTINCTROW [ProductID], [ProductName] FROM ProductsTTL ORDER BY
[ProductName];
I tried using a cmd button
stDocName = "OrdersTEST2"
stLinkCriteria = "[ProductID]=" & Me![ProductName] & """"
DoCmd.OpenForm stDocName, , , stLinkCriteria
But I get an error ...syntax error missing operator...
The combobox on the parent OrdersTEST form doesn't do what I need because it
doesn't filter by category and it is better if the person can see what they
need to choose from a LIST. So the subform becomes the list which is bound by
categoryID to the parent so it is only listing those things in that category.
In the dbl click event what would be the VBA to accomplish this?
And does the parent need code as well?
ALSO:
Could I leave it so they could use either option? Click on the subform or
use the drop down.
Thanks!