Hi, Basically i would like to know the correct syntax for a more thanand equal to query. Here is what i have so far:
Private Sub cboTest_Enter()
Dim strSQL As String
strSQL = "SELECT tblAnsweredQ.ID, tblAnsweredQ.Brand "
strSQL = strSQL + "FROM tblAnsweredQ, tblProducts "
strSQL = strSQL + "WHERE tblAnsweredQ.ID = tblProducts.[ID] "
strSQL = strSQL + "AND tblAnsweredQ.ID = >='UK2';"
cboTest.RowSource = strSQL
End Sub
Access says that there are syntax errors. Can anyone help please? Thanks.
Private Sub cboTest_Enter()
Dim strSQL As String
strSQL = "SELECT tblAnsweredQ.ID, tblAnsweredQ.Brand "
strSQL = strSQL + "FROM tblAnsweredQ, tblProducts "
strSQL = strSQL + "WHERE tblAnsweredQ.ID = tblProducts.[ID] "
strSQL = strSQL + "AND tblAnsweredQ.ID = >='UK2';"
cboTest.RowSource = strSQL
End Sub
Access says that there are syntax errors. Can anyone help please? Thanks.