i create an array with:
'PR_ISTAT
SQL = "SELECT PR, PROVINCIA, COUNT(ISTATEXT) AS NUM FROM (SELECT DISTINCT PR, PROVINCIA, ISTATEXT FROM COMUNI_ISTAT) GROUP BY PR, PROVINCIA"
Set RST = New ADODB.Recordset
RST.CursorLocation = adUseClient
RST.Open SQL, CON, adOpenForwardOnly, adLockReadOnly
Erase ARRAY_PR_ISTAT()
ARRAY_PR_ISTAT = RST.GetRows(RST.RecordCount)
RST.Close
Set RST = Nothing
actually loop all value in array to get the NUM value based a IF PR="AT"
I think this is a bidimensional array and the find clausole i can use only on a monodimensional array...
dubt
'PR_ISTAT
SQL = "SELECT PR, PROVINCIA, COUNT(ISTATEXT) AS NUM FROM (SELECT DISTINCT PR, PROVINCIA, ISTATEXT FROM COMUNI_ISTAT) GROUP BY PR, PROVINCIA"
Set RST = New ADODB.Recordset
RST.CursorLocation = adUseClient
RST.Open SQL, CON, adOpenForwardOnly, adLockReadOnly
Erase ARRAY_PR_ISTAT()
ARRAY_PR_ISTAT = RST.GetRows(RST.RecordCount)
RST.Close
Set RST = Nothing
actually loop all value in array to get the NUM value based a IF PR="AT"
I think this is a bidimensional array and the find clausole i can use only on a monodimensional array...
dubt