473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

HELP! The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

Help! I run into error when my query is too long, anyway to solve this??

Dim objCommand As New OleDb.OleDbCommand(sql, objConn)

Dim objDataAdapter As OleDb.OleDbDataAdapter = New
OleDb.OleDbDataAdapter(objCommand)

intNumOfRec = objDataAdapter.Fill(objData)

SQL:

INSERT INTO
Items([Type_ID],[taxcode_id],[account_id],[category_id],[superceeded_item_id
],[part_sort_no],[class_code],[description],[on_hand_qty],[on_hold_qty],[on_
order_qty],[bin],[suggest_sell_qty],[pack_qty],[unit_cost],[average_cost],[c
ost],[list],[wholesale],[trade],[price1],[price2],[price3],[price4],[price5]
,[is_delete_expired_pn],[is_taxable],[is_active],[is_update],[is_discountabl
e],[part_discount_code],[max_discount],[stock_code],[movement_code],[return_
code],[uom],[month_no_sale],[sales_since_ordered],[rop],[bsl],[minimum_qty],
[maximum_qty],[reorder_method],[reorder_value],[counted],[last_counted_date]
,[last_counted_qty],[last_order_date],[last_order_qty],[last_force_order_qty
],[last_adj_date],[last_adj_qty],[last_pb_update_date],[last_pb_effective_da
te],[last_sell_price],[drop_status],[date_created],[date_modified],[pack_cod
e],[family],[unit_cost_code],[maxi_code],[part_type_code],[part_age],[status
_code]) VALUES
(0,0,0,0,0,'aaa','aaa','desc',3,3,3,'bin1',50,3,4, 4,4,4,4,4,4,4,4,4,4,True,F
alse,False,False,True,'part dis',3,'stco code','mov cod','ret
code','oem',3,4,4,4,0,2,'reorder',3,True,True,3,'3/3/2003',3,3,'3/3/2004',3,
'4/4/2004','5/5/2005',3,'drop','6/6/2006','7/7/2007','pack code',3,'unit
cost','maxi','part',3,'33')

SQL-ERROR: Source: Microsoft JET Database Engine

Message:The field is too small to accept the amount of data you attempted to
add. Try inserting or pasting less data.
Nov 20 '05 #1
4 17941
Hi,

Look at the field sizes in the database. You are probably trying to
add too many characters into one of the fields. (ie add 3 characters into a
field that holds 2)

Ken
---------------
"astroboy" <da****@ddadde.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
Help! I run into error when my query is too long, anyway to solve this??

Dim objCommand As New OleDb.OleDbCommand(sql, objConn)

Dim objDataAdapter As OleDb.OleDbDataAdapter = New
OleDb.OleDbDataAdapter(objCommand)

intNumOfRec = objDataAdapter.Fill(objData)

SQL:

INSERT INTO
Items([Type_ID],[taxcode_id],[account_id],[category_id],[superceeded_item_id ],[part_sort_no],[class_code],[description],[on_hand_qty],[on_hold_qty],[o n_ order_qty],[bin],[suggest_sell_qty],[pack_qty],[unit_cost],[average_cost],[c ost],[list],[wholesale],[trade],[price1],[price2],[price3],[price4],[price5] ,[is_delete_expired_pn],[is_taxable],[is_active],[is_update],[is_discountabl e],[part_discount_code],[max_discount],[stock_code],[movement_code],[return_ code],[uom],[month_no_sale],[sales_since_ordered],[rop],[bsl],[minimum_qty], [maximum_qty],[reorder_method],[reorder_value],[counted],[last_counted_date] ,[last_counted_qty],[last_order_date],[last_order_qty],[last_force_order_qty ],[last_adj_date],[last_adj_qty],[last_pb_update_date],[last_pb_effective_ da te],[last_sell_price],[drop_status],[date_created],[date_modified],[pack_cod e],[family],[unit_cost_code],[maxi_code],[part_type_code],[part_age],[status _code]) VALUES
(0,0,0,0,0,'aaa','aaa','desc',3,3,3,'bin1',50,3,4, 4,4,4,4,4,4,4,4,4,4,True,F alse,False,False,True,'part dis',3,'stco code','mov cod','ret
code','oem',3,4,4,4,0,2,'reorder',3,True,True,3,'3/3/2003',3,3,'3/3/2004',3, '4/4/2004','5/5/2005',3,'drop','6/6/2006','7/7/2007','pack code',3,'unit
cost','maxi','part',3,'33')

SQL-ERROR: Source: Microsoft JET Database Engine

Message:The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

Nov 20 '05 #2
Hi,

Look at the field sizes in the database. You are probably trying to
add too many characters into one of the fields. (ie add 3 characters into a
field that holds 2)

Ken
---------------
"astroboy" <da****@ddadde.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
Help! I run into error when my query is too long, anyway to solve this??

Dim objCommand As New OleDb.OleDbCommand(sql, objConn)

Dim objDataAdapter As OleDb.OleDbDataAdapter = New
OleDb.OleDbDataAdapter(objCommand)

intNumOfRec = objDataAdapter.Fill(objData)

SQL:

INSERT INTO
Items([Type_ID],[taxcode_id],[account_id],[category_id],[superceeded_item_id ],[part_sort_no],[class_code],[description],[on_hand_qty],[on_hold_qty],[o n_ order_qty],[bin],[suggest_sell_qty],[pack_qty],[unit_cost],[average_cost],[c ost],[list],[wholesale],[trade],[price1],[price2],[price3],[price4],[price5] ,[is_delete_expired_pn],[is_taxable],[is_active],[is_update],[is_discountabl e],[part_discount_code],[max_discount],[stock_code],[movement_code],[return_ code],[uom],[month_no_sale],[sales_since_ordered],[rop],[bsl],[minimum_qty], [maximum_qty],[reorder_method],[reorder_value],[counted],[last_counted_date] ,[last_counted_qty],[last_order_date],[last_order_qty],[last_force_order_qty ],[last_adj_date],[last_adj_qty],[last_pb_update_date],[last_pb_effective_ da te],[last_sell_price],[drop_status],[date_created],[date_modified],[pack_cod e],[family],[unit_cost_code],[maxi_code],[part_type_code],[part_age],[status _code]) VALUES
(0,0,0,0,0,'aaa','aaa','desc',3,3,3,'bin1',50,3,4, 4,4,4,4,4,4,4,4,4,4,True,F alse,False,False,True,'part dis',3,'stco code','mov cod','ret
code','oem',3,4,4,4,0,2,'reorder',3,True,True,3,'3/3/2003',3,3,'3/3/2004',3, '4/4/2004','5/5/2005',3,'drop','6/6/2006','7/7/2007','pack code',3,'unit
cost','maxi','part',3,'33')

SQL-ERROR: Source: Microsoft JET Database Engine

Message:The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

Nov 20 '05 #3
I run that exact query in Ms Access and it's working though. Shouldn't be
because of size.

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

Look at the field sizes in the database. You are probably trying to add too many characters into one of the fields. (ie add 3 characters into a field that holds 2)

Ken
---------------
"astroboy" <da****@ddadde.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
Help! I run into error when my query is too long, anyway to solve this??

Dim objCommand As New OleDb.OleDbCommand(sql, objConn)

Dim objDataAdapter As OleDb.OleDbDataAdapter = New
OleDb.OleDbDataAdapter(objCommand)

intNumOfRec = objDataAdapter.Fill(objData)

SQL:

INSERT INTO

Items([Type_ID],[taxcode_id],[account_id],[category_id],[superceeded_item_id
],[part_sort_no],[class_code],[description],[on_hand_qty],[on_hold_qty],[o
n_

order_qty],[bin],[suggest_sell_qty],[pack_qty],[unit_cost],[average_cost],[c

ost],[list],[wholesale],[trade],[price1],[price2],[price3],[price4],[price5]

,[is_delete_expired_pn],[is_taxable],[is_active],[is_update],[is_discountabl

e],[part_discount_code],[max_discount],[stock_code],[movement_code],[return_

code],[uom],[month_no_sale],[sales_since_ordered],[rop],[bsl],[minimum_qty],

[maximum_qty],[reorder_method],[reorder_value],[counted],[last_counted_date]

,[last_counted_qty],[last_order_date],[last_order_qty],[last_force_order_qty
],[last_adj_date],[last_adj_qty],[last_pb_update_date],[last_pb_effective_
da

te],[last_sell_price],[drop_status],[date_created],[date_modified],[pack_cod

e],[family],[unit_cost_code],[maxi_code],[part_type_code],[part_age],[status
_code]) VALUES

(0,0,0,0,0,'aaa','aaa','desc',3,3,3,'bin1',50,3,4, 4,4,4,4,4,4,4,4,4,4,True,F
alse,False,False,True,'part dis',3,'stco code','mov cod','ret

code','oem',3,4,4,4,0,2,'reorder',3,True,True,3,'3/3/2003',3,3,'3/3/2004',3,
'4/4/2004','5/5/2005',3,'drop','6/6/2006','7/7/2007','pack code',3,'unit
cost','maxi','part',3,'33')

SQL-ERROR: Source: Microsoft JET Database Engine

Message:The field is too small to accept the amount of data you

attempted to
add. Try inserting or pasting less data.


Nov 20 '05 #4
I run that exact query in Ms Access and it's working though. Shouldn't be
because of size.

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

Look at the field sizes in the database. You are probably trying to add too many characters into one of the fields. (ie add 3 characters into a field that holds 2)

Ken
---------------
"astroboy" <da****@ddadde.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
Help! I run into error when my query is too long, anyway to solve this??

Dim objCommand As New OleDb.OleDbCommand(sql, objConn)

Dim objDataAdapter As OleDb.OleDbDataAdapter = New
OleDb.OleDbDataAdapter(objCommand)

intNumOfRec = objDataAdapter.Fill(objData)

SQL:

INSERT INTO

Items([Type_ID],[taxcode_id],[account_id],[category_id],[superceeded_item_id
],[part_sort_no],[class_code],[description],[on_hand_qty],[on_hold_qty],[o
n_

order_qty],[bin],[suggest_sell_qty],[pack_qty],[unit_cost],[average_cost],[c

ost],[list],[wholesale],[trade],[price1],[price2],[price3],[price4],[price5]

,[is_delete_expired_pn],[is_taxable],[is_active],[is_update],[is_discountabl

e],[part_discount_code],[max_discount],[stock_code],[movement_code],[return_

code],[uom],[month_no_sale],[sales_since_ordered],[rop],[bsl],[minimum_qty],

[maximum_qty],[reorder_method],[reorder_value],[counted],[last_counted_date]

,[last_counted_qty],[last_order_date],[last_order_qty],[last_force_order_qty
],[last_adj_date],[last_adj_qty],[last_pb_update_date],[last_pb_effective_
da

te],[last_sell_price],[drop_status],[date_created],[date_modified],[pack_cod

e],[family],[unit_cost_code],[maxi_code],[part_type_code],[part_age],[status
_code]) VALUES

(0,0,0,0,0,'aaa','aaa','desc',3,3,3,'bin1',50,3,4, 4,4,4,4,4,4,4,4,4,4,True,F
alse,False,False,True,'part dis',3,'stco code','mov cod','ret

code','oem',3,4,4,4,0,2,'reorder',3,True,True,3,'3/3/2003',3,3,'3/3/2004',3,
'4/4/2004','5/5/2005',3,'drop','6/6/2006','7/7/2007','pack code',3,'unit
cost','maxi','part',3,'33')

SQL-ERROR: Source: Microsoft JET Database Engine

Message:The field is too small to accept the amount of data you

attempted to
add. Try inserting or pasting less data.


Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with...
4
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to...
2
by: Sudheer Kareem | last post by:
Dear All Please tell me how to assosiate help files with my Vb.net Project. Regards Sudheer
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
0
by: tbatwork828 | last post by:
If you were like me trying to figure out how to launch context sensitive help topic by the context id, here is the link: http://weblogs.asp.net/kencox/archive/2004/09/12/228349.aspx and if...
8
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my laptop. All the settings look the same on both...
10
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.