473,414 Members | 1,631 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,414 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 17942
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.