Allora ho una select di questo tipo
sottocat.source="SELECT * FROM Sottocategorie where IDCat="&categorie("IDCat")
La ordino in a/z in questo modo
sottocat.source="SELECT FROM Sottocategorie ORDER BY NomeSottCat DESC where IDCat="&categorie("IDCat")
Ottengo questo errore
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
/Default.asp, line 68
Al rigo 68 ho questo > : sottocat.open()
Cerco di essere + preciso
Nel data-base ho due tabelle Categorie e sottocategorie relazionate tra loro grazie al campo
chiave "IDCat"
Io dovrei ordinare per "NomeSottCat" che è uno dei campi presenti nella tabella sottocategorie
Ho provato anche con:
sottocat.source="SELECT FROM Sottocategorie ORDER BY NomeCat DESC where IDCat="&categorie("IDCat")
"NomeCat" è un campo presente nella tabella Categorie
Nada sempre errore - un aiutino?![]()

Rispondi quotando