M
mattc66 via AccessMonster.com
I am not sure how to do this. Below is my code and it's not working. I am
setting the double click event on the Name1 feild. When they double click I
am wanting to store the data from the Name, Group and Code. Then incorporate
that in an SQL statement to display the results. Can I get some help on how
to do this.
Thanks
Private Sub NAME1_DblClick(Cancel As Integer)
Dim stGroup As String
Dim stName As String
Dim stCode As String
Dim strSQL As String
stGroup = Me.Group1
stName = Me.NAME1
stCode = Me.CODE
strSQL = _
"Select * From ICSTOCK_C1.* " & _
"WHERE (((ICSTOCK_C1.stGroup)="stName"))"
DoCmd.RunSQL strSQL
End Sub
setting the double click event on the Name1 feild. When they double click I
am wanting to store the data from the Name, Group and Code. Then incorporate
that in an SQL statement to display the results. Can I get some help on how
to do this.
Thanks
Private Sub NAME1_DblClick(Cancel As Integer)
Dim stGroup As String
Dim stName As String
Dim stCode As String
Dim strSQL As String
stGroup = Me.Group1
stName = Me.NAME1
stCode = Me.CODE
strSQL = _
"Select * From ICSTOCK_C1.* " & _
"WHERE (((ICSTOCK_C1.stGroup)="stName"))"
DoCmd.RunSQL strSQL
End Sub