P
Phil Hood
When I run the following code (bottom), I get an error:
-------------------------
Run time error 3075
Syntax error (missing operator) in query expression
'((([ResultDescription.ResultDesc]) = First Place))'
Forms![Heat]![Results subform].Form![Result] contains a
string i.e. First Place
-------------------------
I can't work out what is wrong. Help please!
Dim strQuerySQL6 As String
Dim x As String
Set dbsCurrent = CurrentDb
strQuerySQL6 = "SELECT ResultDescription.* FROM
ResultDescription WHERE ((([ResultDescription.ResultDesc])
= " & Forms![Heat]![Results subform].Form![Result] & "));"
Set rstPoints = dbsCurrent.OpenRecordset(strQuerySQL6)
-------------------------
Run time error 3075
Syntax error (missing operator) in query expression
'((([ResultDescription.ResultDesc]) = First Place))'
Forms![Heat]![Results subform].Form![Result] contains a
string i.e. First Place
-------------------------
I can't work out what is wrong. Help please!
Dim strQuerySQL6 As String
Dim x As String
Set dbsCurrent = CurrentDb
strQuerySQL6 = "SELECT ResultDescription.* FROM
ResultDescription WHERE ((([ResultDescription.ResultDesc])
= " & Forms![Heat]![Results subform].Form![Result] & "));"
Set rstPoints = dbsCurrent.OpenRecordset(strQuerySQL6)