Okay, this is the working query:
Code:
SELECT * FROM
ORDER BY
val(left(FieldTOSORT,3)), val(mid(FieldTOSORT,5,InStr(5,FieldTOSORT, "-")-InStr(FieldTOSORT, "-"))), val(mid(FieldTOSORT,InStr(5,FieldTOSORT, "-")+1,Len(FieldTOSORT) - InStr(5,FieldTOSORT, "-")))
The last thing to do is to make the subform (which loads the data using the following query: "SELECT [MyTable].[Field1], [MyTable].[Field2], [MyTable].[FieldTOSORT], [MyTable].[Field3] FROM MyTable;") auto reorder using the previous query... I've tryed to insert in the "order by" property the following expression:
Code:
"left(FieldTOSORT,3), mid(FieldTOSORT,4,InStr(4,FieldTOSORT, "-")-InStr(FieldTOSORT, "-")), mid(Fieldname,InStr(4,FieldTOSORT, "-"),Len(FieldTOSORT) - InStr(5,FieldTOSORT, "-"))"
but I get an error saying that the expression is too complex...