D
Dave
I have a form with a list of products.
Each product has a unique product ID but could have several that have the
same name and the only difference being (other then a different productID)
is they are different colors.
I want to double click on a product name and get a new form (popup) that
looks identical to the form they just doubled clicked on but already
filtered to only the records that had the same product name.
Example:
A form with a list of 1000 different cars.
Double click on Toyato Camery and get a popup form that is a list of only 4
Toyota Camerys (each a different color).
Forms are built
Quires are built
But the double click action on the field name Opens the proper form but NOT
filtered.
What is wrong with my code (or approach)?
Private Sub Description_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmProductsPopUp"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stLinkCriteria = "[Description]=" & Me![Description]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Thanks in advance,
D
Each product has a unique product ID but could have several that have the
same name and the only difference being (other then a different productID)
is they are different colors.
I want to double click on a product name and get a new form (popup) that
looks identical to the form they just doubled clicked on but already
filtered to only the records that had the same product name.
Example:
A form with a list of 1000 different cars.
Double click on Toyato Camery and get a popup form that is a list of only 4
Toyota Camerys (each a different color).
Forms are built
Quires are built
But the double click action on the field name Opens the proper form but NOT
filtered.
What is wrong with my code (or approach)?
Private Sub Description_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmProductsPopUp"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stLinkCriteria = "[Description]=" & Me![Description]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Thanks in advance,
D