Salve ragazzi, ecco la parte di codice che vorrei analizzare con voi:
strFile = "pannello.asp"
strTable = "Nomi"
strKey = "ID" contatore
bgHeaderColor = "#990000"
fontHeaderColor = "white"
bgColor1 = "Silver"
fontColor1 = "Black"
bgColor2 = "White"
fontColor2 = "Black"
Set MyConn=Server.CreateObject("ADODB.Connection")
MyConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.MapPath("/mdb-database/database2.mdb")
Select Case Request("mode")
Case "AddItem"
AddItem
Case "AddItemAction"
AddItemAction
Case "EditItem"
EditItem
Case "EditItemAction"
EditItemAction
Case "DelItem"
delItem
Case Else
ShowAll
End Select
Sub ShowAll()
MySQL="Select * from " & strTable
Set MyRs=MyConn.Execute(MySQL)
Ora nella tabella "Nomi" del db c'è un campo "Espansione".
Vorrei ordinare i risultati secondo questo campo, il codice dovrebbe essere:
MySQL="Select * from " & strTable order by Espansione DESC
giusto? A me non funge e da errore![]()
Dove sbaglio?
Grazie a tutti

Rispondi quotando
