Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

another SQL insert problem

Status
Not open for further replies.

Bullsandbears123

Technical User
Feb 12, 2003
291
US
I'm trying to run this sql code, but I get an error

"Insert into tbl_Trade_Orders_allocated SELECT *," & Chr(34) & Now() & Chr(34) & " FROM tbl_Trade_Orders WHERE [Trade_group_ID]=" & intTrade_group_ID & ";"


"Run-time error '3352'
No destination field name in INSERT INTO STATEMENT ("4/4/2004 9:37AM")."

My table are identical except that the tbl_Trade_Orders_allocated table has an extra "timestamp" field at the very end. What going on, should this work?

I know I can change the code to include each value in the insert table, but that takes to long is there a better way that works?

 
I figured this one out too!

I forgot the "as fieldname" part after the now().

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top