Private Sub 年份_AfterUpdate()
On Error GoTo Err_命令10_Click
MsgBox "Me.过度 = Me.培训安排窗体.培训安排表录入.课程编码 & Me.培训安排窗体.培训安排表录入.年份"
Dim strA As String
Dim intB As Integer
intB = Right(DMax("场次ID", "查询1"), 3)
Me.场次ID = Me.培训安排窗体.培训安排表录入.课程编码 & Me.培训安排窗体.培训安排表录入.年份 & Format(intB + 1, "000")
Exit Sub
Exit_命令10_Click:
intB = 0
Me.场次ID = Me.培训安排窗体.培训安排表录入.课程编码 & Me.培训安排窗体.培训安排表录入.年份 & Format(intB + 1, "000")
Exit Sub
Err_命令10_Click:
Resume Exit_命令10_Click
End Sub