D
DawnP277
I am trying to insert into a table from vb after one record has been added
above through a form.
My problem I need all the information on the form to be duplicated except
the block number needs to be modified based on the orginal block number.
My form has a combo box for Employee, list boxes for sheeter, shift , and
printline, text box for work order , block number, I also have a memo box for
comments.
My code is below I keep getting a syntax issue at the execute line.
If some one can look at my code and let me know what is wwrong that would be
great.
My values are all variables that have held before I save the record of the
one on the form.
strSQL = "INSERT INTO NomexSheeter ([Sheeter], [Shift], [Employee],
[WorkOrder],[BlockNumber],[BlockSection],[Comments], [FoilNum_1],[
FoilNum_2], [FoilNum_3],[PrintLine],[Second Section],[SecondBlock]) " & _
" VALUES ('" & sSheeter & "','" & sShift & " ',' " & sEmployee & " ',' " &
sWorkOrder & " '," & SecBlock & ",' " & SecSection & " ',' " & Comments & "
',' " & sCoil1 & "',' " & sCoil2 & " ',' " & sCoil3 & " ',' " & sPrintLine &
" ',' " & Blank & " ',' " & Blank2 & ")"
Thanks
above through a form.
My problem I need all the information on the form to be duplicated except
the block number needs to be modified based on the orginal block number.
My form has a combo box for Employee, list boxes for sheeter, shift , and
printline, text box for work order , block number, I also have a memo box for
comments.
My code is below I keep getting a syntax issue at the execute line.
If some one can look at my code and let me know what is wwrong that would be
great.
My values are all variables that have held before I save the record of the
one on the form.
strSQL = "INSERT INTO NomexSheeter ([Sheeter], [Shift], [Employee],
[WorkOrder],[BlockNumber],[BlockSection],[Comments], [FoilNum_1],[
FoilNum_2], [FoilNum_3],[PrintLine],[Second Section],[SecondBlock]) " & _
" VALUES ('" & sSheeter & "','" & sShift & " ',' " & sEmployee & " ',' " &
sWorkOrder & " '," & SecBlock & ",' " & SecSection & " ',' " & Comments & "
',' " & sCoil1 & "',' " & sCoil2 & " ',' " & sCoil3 & " ',' " & sPrintLine &
" ',' " & Blank & " ',' " & Blank2 & ")"
Thanks