D
Dan @BCBS
I'm trying to link a command button to a specific record in a subform!
My main form (developed from a table) has a sub form and a command button.
The command button opens another form.
When the user picks a record from the list box then clicks the command
button - I'm trying to display the form linked to the choice made on the
subform.
The common value between the subform and the form I want to open is "ProvNo"
Suggestions??
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProvEDIT"
stLinkCriteria = "[ProvNo]=" & "'" & f_ProvSub![ProvNo] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
My main form (developed from a table) has a sub form and a command button.
The command button opens another form.
When the user picks a record from the list box then clicks the command
button - I'm trying to display the form linked to the choice made on the
subform.
The common value between the subform and the form I want to open is "ProvNo"
Suggestions??
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProvEDIT"
stLinkCriteria = "[ProvNo]=" & "'" & f_ProvSub![ProvNo] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria