jschneider998
Technical User
Hello,
I have a form with a subform listing vendors. The subform is in the datasheet view and has several entries. I would like to be able to double click on any of the vendors in the subform and have a pop up form launch giving more detailed information on that particular vendor selected. I have the VBA code for this process as follows:
Dim stDocName as String
Dim stLinkCriteria As String
stDocName = "frmVendorInfo"
stLinkCriteria = "VendorID"
DoCmd. OpenForm stDocName,,,stLinkCriteria, acReadOnly
Exit_cmdChange_click:
Exit Sub
The problem I am having is that no matter which record I select in the datasheet, the pop up form only displays the very first record of the vendor table. How can I set the link criteria to allow for the possiblity of multiple selections?
I have a form with a subform listing vendors. The subform is in the datasheet view and has several entries. I would like to be able to double click on any of the vendors in the subform and have a pop up form launch giving more detailed information on that particular vendor selected. I have the VBA code for this process as follows:
Dim stDocName as String
Dim stLinkCriteria As String
stDocName = "frmVendorInfo"
stLinkCriteria = "VendorID"
DoCmd. OpenForm stDocName,,,stLinkCriteria, acReadOnly
Exit_cmdChange_click:
Exit Sub
The problem I am having is that no matter which record I select in the datasheet, the pop up form only displays the very first record of the vendor table. How can I set the link criteria to allow for the possiblity of multiple selections?