Quote:
Chris, thanks for your help, but I couldn't quite get it to work. I didn't get an error, but textbox3 didn't become visible, as it should if the sum of the text1 array is equal to the figure inserted in the text2 box.
Any help would be appreciated!
Private Sub Text2_KeyPress(keyascii As Integer)
keyascii = Asc(Chr(keyascii))
Dim Cnt As Integer
Dim FinalVal As Integer
FinalVal = 0
For Cnt = Text1.LBound To Text1.UBound: FinalCnt = FinalCnt + CInt(Text1(Cnt).Text): Next
If Text2.Text = CStr(FinalVal) And keyascii = vbKeyReturn Then
Text3.Visible = True
End If
End Sub