- ©«¤l
- 116
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2002
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-11-17
- ³Ì«áµn¿ý
- 2024-11-15
|
¸Õ¸Õ,¤£ª¾¬O§_¯àº¡¨¬celia»Ý¨D
Private Sub ³æ¸¹_DblClick(Cancel As Integer)
Dim MaxID, date2 As String
If Me.NewRecord = True Then
date2 = Format(Date, "YYYYMMDD") '¤µ¤Ñ¤é´Á
MaxID = DMax("[³æ¸¹]", "¸ê®Æªí1", "Left([³æ¸¹], 8) =" & date2)
If IsNull(MaxID) Then
Me![³æ¸¹] = date2 & "001" '¦pªG¤µ¤Ñ¨S¦³¬y¤ô¸¹¡A±q¤µ¤Ñ¤é´Á+"001"¶}©l
Else
Me![³æ¸¹] = date2 & Format(CStr(Val(Right(MaxID, 3) + 1)), "000") '¦pªG¤µ¤Ñ¦³¬y¤ô¸¹¡A«h±N³Ì¤j¬y¤ô¸¹¥[1
End If
End If
End Sub |
|