Public Function GetAscii(strName As String) As String
Dim strTemp As String
Dim I As Integer
For I = 1 To Len(strName)
strTemp = strTemp & Asc(Mid(strName, I, 1))
Next
GetAscii = strTemp
End Function
SELECT [quetext5-1].品名, Sum([quetext5-1].库存) AS 库存之总计
FROM [quetext5-1]
GROUP BY [quetext5-1].品名, GetAscii([品名]);