ho provato in questo modo (mi sembra tutto ok)
codice:
strSQL = "SELECT "&_
"d.id_destinazione AS DESTINAZIONI_id_destinazione, "&_
"d.destinazione AS DESTINAZIONI_destinazione, "&_
"d.stato AS DESTINAZIONI_stato, "&_
"d.area AS DESTINAZIONI_area, "&_
"s.id_stato AS STATI_id_stato, "&_
"s.stato AS STATI_stato, "&_
"s.area AS STATI_area, "&_
"a.id_area AS AREE_id_area, "&_
"a.area AS AREE_area, "&_
"FROM destinazioni AS d, stati AS s, aree AS a "&_
"WHERE DESTINAZIONI_id_destinazione = "&id_destinazione&" AND DESTINAZIONI_stato = STATI_id_stato AND STATI_area = AREE_id_area"
poi provo a recuperare il valore in alcune variabili
codice:
'DA DESTINAZIONI
DESTINAZIONI_id_destinazione= rs("DESTINAZIONI_id_destinazione")
DESTINAZIONI_destinazione= rs("DESTINAZIONI_destinazione")
DESTINAZIONI_stato= rs("DESTINAZIONI_stato")
DESTINAZIONI_area= rs("DESTINAZIONI_area")
'DA STATI
STATI_id_stato= rs("STATI_id_stato")
STATI_stato= rs("STATI_stato")
STATI_area= rs("STATI_area")
'DA AREE
AREE_id_area= rs("AREE_id_area")
AREE_area= rs("AREE_area")
ma l'errore è:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-4.1.21-standard-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM destinazioni AS d, stati AS s, aree AS a WHERE DESTINAZIONI_id_destinazione' at line 1
/.../.../destinazioni_modifica.asp, line 70
eppure mi sembra tutto corretto....