D
DS
Can I Select and Insert From and Into the Same Table? Such as...
SplitSQL = "INSERT INTO tblCheckDetaisTMP " & _
"SELECT * FROM tblCheckDetailsTMP " & _
"WHERE tblCheckDetailsTMP.CDCheckID = " &
Forms!frmFXDiscountSelect!TxtCheckID & " " & _
"AND tblCheckDetailsTMP.CDGroupID = " & Forms!frmFXDiscountItem!TxtGroupID &
" " & _
"AND tblCheckDetailsTMP.CDLineID = " & Forms!frmFXDiscountItem!TxtLineID & "
" & _
"AND tblCheckDetailsTMP.CDItemID = " & Forms!frmFXDiscountItem!TxtItemID &
";"
DoCmd.RunSQL (SplitSQL)
Any downside?
Thanks
DS
SplitSQL = "INSERT INTO tblCheckDetaisTMP " & _
"SELECT * FROM tblCheckDetailsTMP " & _
"WHERE tblCheckDetailsTMP.CDCheckID = " &
Forms!frmFXDiscountSelect!TxtCheckID & " " & _
"AND tblCheckDetailsTMP.CDGroupID = " & Forms!frmFXDiscountItem!TxtGroupID &
" " & _
"AND tblCheckDetailsTMP.CDLineID = " & Forms!frmFXDiscountItem!TxtLineID & "
" & _
"AND tblCheckDetailsTMP.CDItemID = " & Forms!frmFXDiscountItem!TxtItemID &
";"
DoCmd.RunSQL (SplitSQL)
Any downside?
Thanks
DS