R
RJB
I'm using code from Allen Browne's website for copying data from a
form and its subform into a new record. I keep getting syntax errors
when running. I've quadruple checked the field names. Any ideas what
is causing the errors?
code>
strSql = "INSERT INTO Tbl_WorkorderEntry (Log#, LogLetter,
Description, OrderType, CoatingType, SourceType, SourcePlatform,
SourceFileType, SourceFileName, FilePrep, Quantity, Originals, Format,
Paper1, Paper2, Paper3, Paper4, Paper5, Paper6, FinishedPieces,
FinishedSize, FinishingServices, PricingNotes, ItemsPricing, Pricing,
Extras, Runtime) " & _
"SELECT " & lngID & " As NewID, LogLetter,
Description, OrderType, CoatingType, SourceType, SourcePlatform,
SourceFileType, SourceFileName, FilePrep, Quantity, Originals, Format,
Paper1, Paper2, Paper3, Paper4, Paper5, Paper6, FinishedPieces,
FinishedSize, FinishingServices, PricingNotes, ItemsPricing, Pricing,
Extras, Runtime " & _
"FROM Tbl_WorkorderEntry WHERE LogID = " &
Me.LogID & ";"
<end code
Any help is greatly appreciated.
Thanks.
form and its subform into a new record. I keep getting syntax errors
when running. I've quadruple checked the field names. Any ideas what
is causing the errors?
code>
strSql = "INSERT INTO Tbl_WorkorderEntry (Log#, LogLetter,
Description, OrderType, CoatingType, SourceType, SourcePlatform,
SourceFileType, SourceFileName, FilePrep, Quantity, Originals, Format,
Paper1, Paper2, Paper3, Paper4, Paper5, Paper6, FinishedPieces,
FinishedSize, FinishingServices, PricingNotes, ItemsPricing, Pricing,
Extras, Runtime) " & _
"SELECT " & lngID & " As NewID, LogLetter,
Description, OrderType, CoatingType, SourceType, SourcePlatform,
SourceFileType, SourceFileName, FilePrep, Quantity, Originals, Format,
Paper1, Paper2, Paper3, Paper4, Paper5, Paper6, FinishedPieces,
FinishedSize, FinishingServices, PricingNotes, ItemsPricing, Pricing,
Extras, Runtime " & _
"FROM Tbl_WorkorderEntry WHERE LogID = " &
Me.LogID & ";"
<end code
Any help is greatly appreciated.
Thanks.