G
Guest
hi there, i have a problem with my query in my coding. i will just include
the fragment of the code relevant as the entire thing is too long.
Dim qry2 As String - a query
Dim childm As Integer - number
Dim strresult As String - text
qry2 = "SELECT child_id_1, child_id_2, result" & _
"FROM tbl_stay_results" & _
"WHERE (((result) = """ & strresult & """) AND ((child_id_1) = "
& childm & "))" & _
"OR (((result) = """ & strresult & """) AND ((child_id_2) = " &
childm & "));"
Me.Recordset = qry2
Me.Requery
from this i get the error that "operation is not supported for this type of
object"
if anybody can spot my error i will be most grateful.
the fragment of the code relevant as the entire thing is too long.
Dim qry2 As String - a query
Dim childm As Integer - number
Dim strresult As String - text
qry2 = "SELECT child_id_1, child_id_2, result" & _
"FROM tbl_stay_results" & _
"WHERE (((result) = """ & strresult & """) AND ((child_id_1) = "
& childm & "))" & _
"OR (((result) = """ & strresult & """) AND ((child_id_2) = " &
childm & "));"
Me.Recordset = qry2
Me.Requery
from this i get the error that "operation is not supported for this type of
object"
if anybody can spot my error i will be most grateful.