Private Sub Command14_Click()
Dim sqls As String
If Not IsNull(yhpo) Then
sqls = "INSERT INTO out(DNn,序號,數量)"
sqls = sqls & "SELECT'" & Me.[DNn] & "' AS Expr1, Open.序號 , Open.tobe "
sqls = sqls & "From [Open]"
sqls = sqls & "WHERE (((open.YH廠單)='" & Me.yhpo & "'));"
DoCmd.RunSQL (sqls)
Me.open.Requery
Me.DNs1.Requery
End If
Exit Sub
End Sub
============