以下是引用hjy611在2006-1-9 17:07:00的发言:
Function TrueLen(ByVal stra As String) As Long
Dim i As Integer
Dim strResult As String '返回字串
Dim strb As String
For i = 1 To Len(stra)
strb = Mid(stra, i, 1)
If IsNumeric(strb) Then
strResult = strResult + CStr(strb)
End If
Next i
End Function
这个代码Sub 测试就可以但在查询里用上面函数就是取不到所以数据都变成0
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |