This has to be THE dumbest question ever asked, but I feel like I have tried everything and nothing seems to work! I have a list of numbers, sorted in ascending order in a table called Median - (yes I am trying to find the median value)
My code to peruse the list of numbers until finding the middle number is:
' First I find the total number of records. Is there an
easier way?
iNumRec = 1
Do while NOT objRS.EOF
iNumRec = iNumRec + 1
objRS.MoveNext
Loop
' Now to peruse to the middle record
for iCounter = 1 to iNumRec \ 2
next
' I am now at the middle record what comes next?
response.write _________
My code to peruse the list of numbers until finding the middle number is:
' First I find the total number of records. Is there an
easier way?
iNumRec = 1
Do while NOT objRS.EOF
iNumRec = iNumRec + 1
objRS.MoveNext
Loop
' Now to peruse to the middle record
for iCounter = 1 to iNumRec \ 2
next
' I am now at the middle record what comes next?
response.write _________