Hi,
I have a WORKORDERform with a PARTsubform. I want to click on a record in the PARTsubform which will open the PARTINFOform but will show only the particular record based on the PartID of the PARTsubform. Here's my code:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "PARTINFOForm"
strPartID = Forms![WORKORDERform]![PARTsubform]!PartID
stLinkCriteria = "[PartID] = " & strPartID
DoCmd.OpenForm stDocName, , , stLinkCriteria
I have a WORKORDERform with a PARTsubform. I want to click on a record in the PARTsubform which will open the PARTINFOform but will show only the particular record based on the PartID of the PARTsubform. Here's my code:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "PARTINFOForm"
strPartID = Forms![WORKORDERform]![PARTsubform]!PartID
stLinkCriteria = "[PartID] = " & strPartID
DoCmd.OpenForm stDocName, , , stLinkCriteria