S
sherriross81
Hello,
I am trying to retreive a value from my database depending on which value
the user selects in a combo box. Here is my code:
Dim strSQL As String
strSQL = "Select ID FROM 'Computer Inventory' " _
& "WHERE 'PC Name' = " & Me.cboComputerName & ""
CurrentDb.Execute strSQL, dbFailOnError
Me.Requery
I keep getting an incomplete query clause error. I can't seem to figure out
what is missing.
Thanks in advance.
I am trying to retreive a value from my database depending on which value
the user selects in a combo box. Here is my code:
Dim strSQL As String
strSQL = "Select ID FROM 'Computer Inventory' " _
& "WHERE 'PC Name' = " & Me.cboComputerName & ""
CurrentDb.Execute strSQL, dbFailOnError
Me.Requery
I keep getting an incomplete query clause error. I can't seem to figure out
what is missing.
Thanks in advance.