¬°¦óTextboxªºSetfocusµLªkµo´§¥\¯à©O¡H
- ©«¤l
- 231
- ¥DÃD
- 55
- ºëµØ
- 0
- ¿n¤À
- 293
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- KEELUNG
- µù¥U®É¶¡
- 2010-7-24
- ³Ì«áµn¿ý
- 2018-8-28
|
¬°¦óTextboxªºSetfocusµLªkµo´§¥\¯à©O¡H
¦U¦ì¤j¤j¦n¡G
¤p§Ì±`±`¨Ï¥Îªí³æ¾Þ§@¡A
¦ý¤@ª½·|¹J¨ìn¨Ïªí³æ¤Wªº
textbox¯à¦b¤@¶}±Òªí³æ®É
¯à±N¾nÂI°±¦bTextbox¤W¡A
¬°¦ó¨Ï¥ÎTextboxªºSetfocus
«o·|µLªkµo´§¨ä¥\¯à©O¡H
·PÁ¦U¦ì¤j¤j¡I |
-
-
TEST.rar
(11.51 KB)
|
|
|
|
|
|
- ©«¤l
- 1
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 1
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- 64bit
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2012-7-14
- ³Ì«áµn¿ý
- 2012-7-14
|
¦^´_ 4# GBKEE
½Ð°Ý¤j¤j~~
§Q¥ÎAfterUpdate()ÅçÃÒ¨¤ÀÃÒ¦r¸¹¿ù»~«á¡A¬O§_¥i¥H§Q¥Îsetfocus±N«ü¼Ð«ü©w¦b¨¥÷ÃÒ¦r¸¹ªºÄæ¦ì¤W©O?
§Úªºµ{¦¡½X¦p¤U:
Private Sub id_AfterUpdate()
Dim mPID As String
mPID = Me![id]
mAE = Left(mPID, 1)
mSE = Mid(mPID, 2, 1)
Aer = DLookup("Numb", "CITYID", "[CODE]='" & mAE & "'")
chk = (Mid(Aer, 1, 1) + Mid(Aer, 2, 1) * 9 + Mid(mPID, 2, 1) * 8 + Mid(mPID, 3, 1) * 7 + Mid(mPID, 4, 1) * 6 + Mid(mPID, 5, 1) * 5 + Mid(mPID, 6, 1) * 4 + Mid(mPID, 7, 1) * 3 + Mid(mPID, 8, 1) * 2 + Mid(mPID, 9, 1) * 1 + Mid(mPID, 10, 1) * 1) Mod 10
If chk <> 0 Then
MsgBox "¨¤ÀÃÒ¸¹½X¿é¤J¿ù»~!!! ½Ð«·s¿é¤J"
Me![id] = ""
Me![id].SetFocus
Exit Sub
Else
MsgBox "¨¤ÀÃÒ¸¹½X¿é¤J¥¿½T!!!"
Select Case mSE
Case "1"
Me![e] = "¨k"
Me![Sexl].Value = "1"
Case "2"
Me![e] = "¤k"
Me![Sexl].Value = "2"
End Select
End If
End Sub
ÀYµhªº¤p¾Ç¥Í 2012.7.14 |
|
|
|
|
|
|
- ©«¤l
- 231
- ¥DÃD
- 55
- ºëµØ
- 0
- ¿n¤À
- 293
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- KEELUNG
- µù¥U®É¶¡
- 2010-7-24
- ³Ì«áµn¿ý
- 2018-8-28
|
ÁÂÁª©¥D¤j¤j¡C
¤p§Ì¤w¦¬¤U¡A
¨Ã¦n¦n¬ã¨s¤ÎÅé·|¨ä§t·N¡C
·P®¦¤j¤j¡I |
|
|
|
|
|
|
- ©«¤l
- 231
- ¥DÃD
- 55
- ºëµØ
- 0
- ¿n¤À
- 293
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- KEELUNG
- µù¥U®É¶¡
- 2010-7-24
- ³Ì«áµn¿ý
- 2018-8-28
|
ÁÂÁª©¥D¤j¤jªº»¡©ú¡C
¤p§Ì¤Þ¥Î¤j¤j±Nuserformªºinitialize
¤º®e¨ú®ø¤§«á¡A¤w¥iÅýtextboxªºsetfocus
µo´§¨ä¥\¯à¡C
¤£¹L¡Aª©¥D¤j¤j¹ïinitializeªº»¡©ú¡A
¤p§Ì¤]´¿ª½±µ¦bexcel help¤ºÆ[¬Ý¨ä»¡©ú¡A
¹ê¦]¤p§Ì¸ê½è©|²L¡AÁÙµLªk¯à¥þµM²z¸Ñ¨ä§t·N¡C
¤£ª¾¯à§_½Ðª©¥D¤j¤j¯à¦A¦h¦h¶}¥Ü¡C
·P®¦¤j¤j¡I |
|
|
|
|
|
|