S
sherriross81
Hello,
I have a query that returns a result. I want to use the result that it
returns and have it display in a text box on my form. Here is my code:
Dim strSQL As String
strSQL = "Select ID FROM [Computer Inventory] " _
& "WHERE [PC Name] = '" & Me.cboComputerName & "'"
Me.txtComputerIDCode = strSQL
When I assign it to strSQL it returns that entire select statement. How can
I return the ID that it selected?
Thanks in advance.
I have a query that returns a result. I want to use the result that it
returns and have it display in a text box on my form. Here is my code:
Dim strSQL As String
strSQL = "Select ID FROM [Computer Inventory] " _
& "WHERE [PC Name] = '" & Me.cboComputerName & "'"
Me.txtComputerIDCode = strSQL
When I assign it to strSQL it returns that entire select statement. How can
I return the ID that it selected?
Thanks in advance.