Private Sub 發出單號_AfterUpdate()
Dim a As Integer, i As Integer, str2 As String
a = Right(Me.發出單號, 2)
For i = 1 To a
str2 = "insert into 發出表 ( 發出單號, 序號) select (forms![發出表]![發出單號])," & Me.發出單號 & "/" & i
DoCmd.SetWarnings False
DoCmd.RunSQL str2
DoCmd.SetWarnings True
Next
End Sub