The thing is, it isn't the actual insert that is tossing the error but when I define that string before executing it.
Michael Oke, II 661-349-6221 Contents of this and all messages are intended for their designated recipient. On Apr 12, 2012, at 4:56 PM, M Jarvis <[email protected]> wrote: > On Thu, Apr 12, 2012 at 4:50 PM, Michael Oke, II <[email protected]> wrote: >> "insert into food (FoodID,CategoryID,CompanyID,UserID,Name) values >> (?lnFoodId,?lnCategoryId,?lnCompanyId,?lnUserId,?lcName) >> >> String is longer but that gives you the basics. >> > > in direct mode the parameter values are within scope. In a pass thru, > (not sure) they might not be, thus they need to be evaluated first and > placed into the string before sending it along to SQL. > > So your code might look something like: > > "insert into food (FoodID,CategoryID,CompanyID,UserID,Name) values > (evaluate(?lnFoodId),evaluate(?lnCategoryId),evaluate(?lnCompanyId),evaluate(?lnUserId),evaluate(?lcName)) > > > Just a WAG... > > -- > Matt Jarvis > Eugene, Oregon USA > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

