B
Bob V
I have a list box with this row source
SELECT qryNoClient.HorseID, qryNoClient.Name FROM qryNoClient;
I want to be able to click on a row and get the frmHorseInfo, Through his
HorseID field!
Something like this:
Private Sub ListNoClient_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmHorseInfo"
stLinkCriteria = "[HorseID]=" & Me![HorseID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
SELECT qryNoClient.HorseID, qryNoClient.Name FROM qryNoClient;
I want to be able to click on a row and get the frmHorseInfo, Through his
HorseID field!
Something like this:
Private Sub ListNoClient_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmHorseInfo"
stLinkCriteria = "[HorseID]=" & Me![HorseID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub