Thanks again for the reply, with a little tweaking here and there it works fine...
altho i do have another problem...
I wish to find the average data from the entered data EG...
Data entered:
"1" "2" "3" "4" "5"
Calculation for finding the average:
(1+2+3+4+5) / 5
how do i do this when the data is in an array?
I dont want too show the working, i just want the result to appear in a lable.
just incase it helps, new code is;
Public j, k as single
Data Input Code:
PHARRAY(j) = Val(newphreading.Text)
Waterinformation.currentph.Caption = PHARRAY(j)
If Val(Waterinformation.currentph.Caption) >= 6.4 _
And Val(Waterinformation.currentph.Caption) <= 7.6 Then
Waterinformation.phcolourgoodbad.BackColor = vbGreen
Else
Waterinformation.phcolourgoodbad.BackColor = vbRed
End If
Waterinformation.Enabled = True
j = j + 1
Unload Me
Data Output Code:
For k = 0 To j - 1
MsgBox PHARRAY(k)
Next k