A family of Microsoft relational database management systems designed for ease of use.
Sort the query by the following expressions, each of which returns a numerical value:
ORDER BY Val(CaseNo), Val(Mid(CaseNo,Instr(CaseNo,"-")+1))
You can see how the expressions work in the immediate window:
CaseNo = "23-1000"
Sort1 = Val(CaseNo)
? Sort1
23
Sort2 = Val(Mid(CaseNo,Instr(CaseNo,"-")+1))
? Sort2
1000
BTW avoid special characters like the # character or spaces in object names. They can cause notational problems. Instead use CamelCase as I've done above, or represent a space with an underscore character, e.g. Case_No.