D
Dale
Hi everyone, I have a function to calculate percentiles that was built in
Access 2000, which I would like to use in my Access 97 applications. I have
converted the formula (or so I think), but the result does not calculate
properly. My guess is, variables for reuse are not stored properly, it keeps
repeating the one value for each row (24 rows):
Site N Mean Min Max p_10 p_25 p_50 p_75 p_90
9 1418 2.86 1.02 27.07 1.02 1.02 1.02 1.02 1.02
10 4481 3.03 0.62 26.07 0.62 0.62 0.62 0.62 0.62
ALL that I have changed is how the recordset is accessed:
Dim sqlSort As String
'Static cnn As ADODB.Connection
Static db As Database
Dim rst As Recordset
..........more code between
'Set cnn = CurrentProject.Connection
'Set rst = cnn.Execute(sqlSort)
Set db = CurrentDb
Set rst = db.OpenRecordset(sqlSort, dbOpenDynaset)
Is the Static declaration not being used correctly?...any help is
appreciated...Thanks
All references are set to dao and not to ado..thanks again
Access 2000, which I would like to use in my Access 97 applications. I have
converted the formula (or so I think), but the result does not calculate
properly. My guess is, variables for reuse are not stored properly, it keeps
repeating the one value for each row (24 rows):
Site N Mean Min Max p_10 p_25 p_50 p_75 p_90
9 1418 2.86 1.02 27.07 1.02 1.02 1.02 1.02 1.02
10 4481 3.03 0.62 26.07 0.62 0.62 0.62 0.62 0.62
ALL that I have changed is how the recordset is accessed:
Dim sqlSort As String
'Static cnn As ADODB.Connection
Static db As Database
Dim rst As Recordset
..........more code between
'Set cnn = CurrentProject.Connection
'Set rst = cnn.Execute(sqlSort)
Set db = CurrentDb
Set rst = db.OpenRecordset(sqlSort, dbOpenDynaset)
Is the Static declaration not being used correctly?...any help is
appreciated...Thanks
All references are set to dao and not to ado..thanks again