Hello,
I have this query that I am using to find an ID number. I want to use the ID that the query returns and assign it to a text box on my form. I can't figure out how to do it and can't seem to find anything that gives an example.
Dim strSQL As String
strSQL = "Select ID FROM [Computer Inventory] " _
& "WHERE [PC Name] = '" & Me.cboComputerName & "'"
Me.txtComputerIDCode = strSQL (this just gives me my sql statement...
)
I have this query that I am using to find an ID number. I want to use the ID that the query returns and assign it to a text box on my form. I can't figure out how to do it and can't seem to find anything that gives an example.
Dim strSQL As String
strSQL = "Select ID FROM [Computer Inventory] " _
& "WHERE [PC Name] = '" & Me.cboComputerName & "'"
Me.txtComputerIDCode = strSQL (this just gives me my sql statement...
