I got a main form which contains two coloumns which list a no/product. I had given vba code for product field click event to open preduct detail form with the selected product and it details to edit. I given code as below
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = Me.Product
stDocName = "ProductDetail"
DoCmd.openform stDocName, , , "Product = " & stLinkCriteria
When I click the product its showing a input box and while enter the value its opening the product details with correct information.
I dont want to input the product name every time. I want this to work directly while clicking the product and should open it product details.
Please let me know how can do this ?