G
Guest
On a form I have a sub form that lists records as a datasheet.
The user needs to be able to edit those records.
This is my code for a command button on the mainform - but how can I specify
one record shown on the subform. "RECORD PICKED FROM SUBFORM"
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProviderDetails"
stLinkCriteria = "[PROVNO]=" & "'" & Me![RECORD PICKED FROM SUBFORM] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks
The user needs to be able to edit those records.
This is my code for a command button on the mainform - but how can I specify
one record shown on the subform. "RECORD PICKED FROM SUBFORM"
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProviderDetails"
stLinkCriteria = "[PROVNO]=" & "'" & Me![RECORD PICKED FROM SUBFORM] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks