|
5#
楼主 |
发表于 2011-5-26 10:44:01
|
只看该作者
Private Sub Form_AfterUpdate()
Dim Tempid As String
Dim Tempid1 As String
TempidA = Me.Lable2
TempidB = Me.Lable5
TempidC = Me.Lable4
TempidD = Me.Lable3
TempidE = Me.Lable6
TempidF = Me.Lable7
TempidG = Me.Lable8
TempidH = Me.Lable9
TempidI = Me.Lable10
TempidJ = Me.Lable11
TempidL = Me.Lable12
DoCmd.GoToRecord , , acNewRec
Me.Lable2.DefaultValue = "'" & TempidA & "'"
Me.Lable5.DefaultValue = "'" & TempidB & "'"
Me.Lable4.DefaultValue = "'" & TempidC & "'"
Me.Lable3.DefaultValue = "'" & TempidD & "'"
Me.Lable6.DefaultValue = "'" & TempidE & "'"
Me.Lable7.DefaultValue = "'" & TempidF & "'"
Me.Lable8.DefaultValue = "'" & TempidG & "'"
Me.Lable9.DefaultValue = "'" & TempidH & "'"
Me.Lable10.DefaultValue = "'" & TempidI & "'"
Me.Lable11.DefaultValue = "'" & TempidJ & "'"
Me.Lable12.DefaultValue = "'" & TempidL & "'"
End Sub
我做的是数据表窗口,所以都是需要自动的
|
|