Hi RuralGuy,
I've discovered, by a process of elimination, that the 'For ingLoop'
routine always returns a value of -1 if the value for txtModuleID is
either 1, 2 or 7...but only if the value is in the first record
displayed on the continuous forms sub form.
In the VB window I also discovered that when I click my right hand
mouse over any other statement, a drop-down menu appears which contains
an option to 'List Properties and Methods'...MoveFist and MoveNext are
not in the list.
When I click within the word 'MoveFirst' and press F1, a context help
dialogue box appears which says that MoveFirst is an object in the DAO
and ADOB libraries but doesn't mention VB...by the way I'm using VB
6.3.
It looks to me like the 'Where' routine is only searching the first
record in the multiple forms sub form because it doesn't know what
MoveFirst or MoveNext means...What do you think and have you any
suggestions?
************************************************************
With Me.RecordsetClone
.MoveFirst
Do While .EOF = False
If Me.Exam_details_Subform!txtModuleID.Value = 1 _
And Me.Exam_details_Subform!chbxPass.Value = True Then
blnTests(1) = -1
ElseIf Me.Exam_details_Subform!txtModuleID.Value = 2 _
And Me.Exam_details_Subform!chbxPass.Value = True Then
blnTests(2) = -1
ElseIf Me.Exam_details_Subform!txtModuleID.Value = 7 _
And Me.Exam_details_Subform!chbxPass.Value = True Then
blnTests(3) = -1
End If
.MoveNext
Loop
End With
***********************************************************
Terry