473,804 Members | 3,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datatype error

al
hi, I have a table that contain a field "amount" its
datatype is numeric(18,4) in sql server 2000

I have created a Datagrid, when I edit a record, I get an
error like this one
BC30456: 'Numeric' is not a member of 'System.Data.Db Type'.
Line 213: dbParam_amount. ParameterName = "@amount"
Line 214: dbParam_amount. Value = amount.text
Line 215: dbParam_amount. DbType =
System.Data.DbT ype.Numeric
Line 216: dbCommand.Param eters.Add(dbPar am_amount)

You can find the complete code at
http://aalhussein.webhostme.com/Q/dg_parameter_dt.htm

I am not sure if vb.net contain numerice datatype. Do I
have to use other datatype or what.
thanks
Al

Nov 18 '05 #1
1 1283
Hi Al,
Try System.Data.DbT ype.VarNumeric .. refer
[http://msdn.microsoft.com/library/de...lasstopic.asp]

Hope that helps
R. Pooran Prasad
Itreya Technologies Pvt Ltd.,
Mail: pooran.prasad_a t_itreya.com
Phone(Off) : +91(80)5200179 Extn: 51
Mobile: +91 98860 29578
-----Original Message-----
hi, I have a table that contain a field "amount" its
datatype is numeric(18,4) in sql server 2000

I have created a Datagrid, when I edit a record, I get an
error like this one
BC30456: 'Numeric' is not a member of 'System.Data.Db Type'.
Line 213: dbParam_amount. ParameterName = "@amount"
Line 214: dbParam_amount. Value = amount.text
Line 215: dbParam_amount. DbType =
System.Data.Db Type.Numeric
Line 216: dbCommand.Param eters.Add(dbPar am_amount)

You can find the complete code at
http://aalhussein.webhostme.com/Q/dg_parameter_dt.htm

I am not sure if vb.net contain numerice datatype. Do I
have to use other datatype or what.
thanks
Al

.

Nov 18 '05 #2

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

Similar topics

2
2930
by: Stephen Briley | last post by:
For some reason, my posts are scrubbed as attachments. Lets hope that sending from the yahoo account works. I'm new to Python and I'm trying to do some database work with MS Access, but I can't seem to get around a "datatype mismatch error". Here's an example table that I'm working with... ID name dept 1 steve acct
2
2126
by: Steve Briley | last post by:
I'm new to Python and I'm trying to do some database work with MS Access, but I can't seem to get around a "datatype mismatch error".  Here's an example table that I'm working with...   ID      name    dept 1       steve   acct
4
3892
by: J.C. Flores | last post by:
Hello all, First of all, I must state that I'm new to SQL Server, but have been a long-time software guy for quite some time. Please excuse the potential simplicity of the solution to my problem. I create a blank database (TestDB) under my server machine (SQL Server 2000 Standard)... I then create a new table (Run_Number) with only one record in it.
2
3846
by: Johan Delimon | last post by:
"The active directory datatype cannot be converted to/from a native DS datatype" I have an ASP.NET web page that uses queries to AD to identify current users. Delegation is configured in AD and works as expected. But sometimes I get an error : "The active directory datatype cannot be converted to/from a native DS datatype" And the only way to resolve this error is to kill the aspnet_wp.exe manually.
1
1481
by: Prabu Subroto | last post by:
Dear my friends... I want to change the datatype of a completed table (has had already content). But I don't know how. Here is my try: " kv=# alter table customer alter column address set type char(150); ERROR: syntax error at or near "type" at character 47
1
2866
by: Praveen | last post by:
HI, I have a table with IDENTITY column with the datatype as INTEGER. Now this table record count is almost reaching its limt. that is total record count is almost near to 2^31-1. It will reach the limit with in another one or two months. In order to avoid the arithmentic overflow error 8115, we would like change the datatype from INT to BIGINT. we hope this will solve our problem.
0
1655
by: vijayalakshmi.venkataraman | last post by:
Hello, I have a .NET client that accesses a Java webservice. Let me first say that the client stub I got generated from the wsdl was incomplete and had to make changes to it manually to make it work to an extent. I generated a java client stub for the java web service and have been modifying my .NET client stub using the java client stub as a reference and things seemed to work fine until I got the following error. In my client...
1
14000
by: Jay Balapa | last post by:
Hello, Iam trying to do the following- if(myColumn.DataType==typeof(bool)) { } this does not work either Type.GetType("System.Boolean") instead of typeof(bool).
1
5210
by: reliance | last post by:
Using Oracle Migration Workbench, I migrated ms-access 2003 database to oracle 9i. The memo datatype in ms-access mapped to clob datatype in oracle. I have created a system dsn to access oracle tables through ms-access so that the front-end will remain in ms-access. While fetching clob datatype fields - I get ODBC error ODBC--call failed. Function sequence error(#0) System Info : Windows 2003 SP-2 MS-Office 2003 MS-ACCESS 2003 but...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10320
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9150
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.