Access������--
ËùÊô·ÖÀࣺ ʵÓôúÂë ×÷Õߣº ÀîÐ¥ÁÖ ¸üÐÂÈÕÆÚ£º2003-12-18 21:46:15 ÔĶÁ´ÎÊý£º657

¼¸¸ö³£ÓõÄÉí·ÝÖ¤Ïà¹Øº¯Êý


Public Function SfzToXb(Éí·ÝÖ¤ºÅ As String) As String
Dim i As Integer

If Len(Éí·ÝÖ¤ºÅ) = 15 And IsNumeric(Right(Éí·ÝÖ¤ºÅ, 1)) Then
¡¡ i = CInt(Right(Éí·ÝÖ¤ºÅ, 1))
¡¡ If i Mod 2 = 0 Then SfzToXb = "Å®" Else SfzToXb = "ÄÐ"
End If
If Len(Éí·ÝÖ¤ºÅ) = 18 And IsNumeric(mID(Éí·ÝÖ¤ºÅ, 17, 1)) Then
¡¡ i = CInt(mID(Éí·ÝÖ¤ºÅ, 17, 1))
¡¡ If i Mod 2 = 0 Then SfzToXb = "Å®" Else SfzToXb = "ÄÐ"
End If

End Function


Public Function SfzToRq(Éí·ÝÖ¤ºÅ As String) As Date
Dim strRq As String

If Len(Éí·ÝÖ¤ºÅ) = 15 Then
¡¡ strRq = mID(Éí·ÝÖ¤ºÅ, 9, 2) & "/" & mID(Éí·ÝÖ¤ºÅ, 11, 2) & "/" & "19" & mID(Éí·ÝÖ¤ºÅ, 7, 2)
¡¡ If IsDate(strRq) Then SfzToRq = CDate(strRq)
End If
If Len(Éí·ÝÖ¤ºÅ) = 18 Then
¡¡ strRq = mID(Éí·ÝÖ¤ºÅ, 11, 2) & "/" & mID(Éí·ÝÖ¤ºÅ, 13, 2) & "/" & mID(Éí·ÝÖ¤ºÅ, 7, 4)
¡¡ If IsDate(strRq) Then SfzToRq = CDate(strRq)
End If

End Function


'³¤Éí·ÝÖ¤µ½¶ÌÉí·ÝÖ¤
Public Function LSfzToS(Sfz As String) As String
¡¡LSfzToS = Left(Sfz, 6) & mID(Sfz, 9, 9)
End Function



--------------------------------------------------------------------------------
Ïà¹ØÎÄÕÂ

½«15µÄÉí·ÝÖ¤ºÅÉýΪ18λµÄº¯Êý 2003-10-18 10:00:59


ϵͳÓÅ»¯
¿Ø¼þʹÓÃ
Êý¾Ý¿âÉè¼Æ
Êý¾Ý¿âÁ¬½Ó
ϵͳ°²È«
OLE×Ô¶¯»¯
³£¼ûÎÊÌâ
ʵÓôúÂë
ÊôÐÔÏê½â
ÍøÂçÏà¹Ø
ʵÓÃAPI
¾­Ñé·ÖÏí
¾«Ñ¡½Ì³Ì
×Ö·û´¦Àí
ADPÏà¹Ø



ÎÄÕÂËÑË÷



ÖÆ×÷ά»¤£ºÀîÑ°»¶     Mail:[email protected]

¹ØÓÚ±¾Õ¾ -- ÍøÕ¾·þÎñ -- °æȨÌõ¿î -- ÁªÏµ·½·¨ -- ÍøÕ¾°ïÖú
Access°®ºÃÕß°æȨËùÓÐ Copyright 2003-2005 All Rights Reserved δ¾­Ðí¿É²»µÃµÁÁ´