in the next code i want to select from the query 'SPTrue' all the fields and apend it to the string criteria. executing this is an error that reports to that "an object value is required". i know that my problems is in the for condition but i don't know how to made it
can somebody to help me with this problem ???
thanks
best regard !

can somebody to help me with this problem ???
Code:
Dim Criteria As String
Dim count As Integer
Dim Msg As String
Dim varItem As Variant
Criteria = ""
For Each varItem In Querys!SPTrue![Fin_Program_ID]
Criteria = Criteria & "[Fin_Program_ID] = '" & Queries!SPTrue![Fin_Program_ID] & "' OR "
Next
If Criteria <> "" Then
Criteria = Left(Criteria, Len(Criteria) - 4)
Else
MsgBox "No one program was selected"
Exit Sub
End If
DoCmd.OpenReport "Projects", acPreview, , Criteria
thanks
best regard !