473,513 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Insert error from designer generated table adapter:object reference not set to..

Rob
I use VB.net 2005 and designer-generated typed dataset. Within the
dataset, there is a table adapter and the table adapter has a public
Insert method. So I tried to call the Insert method with my own
parameters but it causes an exception that says "object reference not
set to an instance of an object". Most of the parameters are string,
decimal and date that have been CTyped so it doesn't seem to be the
problem of the parameters. Any idea?

Rob

Feb 2 '07 #1
2 1908
Rob,

This can in my idea not be helped without that code where you try to use
that insert method.
And why don't you use your own insert method for this?

Cor

"Rob" <xi****@hotmail.comschreef in bericht
news:11**********************@q2g2000cwa.googlegro ups.com...
>I use VB.net 2005 and designer-generated typed dataset. Within the
dataset, there is a table adapter and the table adapter has a public
Insert method. So I tried to call the Insert method with my own
parameters but it causes an exception that says "object reference not
set to an instance of an object". Most of the parameters are string,
decimal and date that have been CTyped so it doesn't seem to be the
problem of the parameters. Any idea?

Rob

Feb 3 '07 #2
Post your code (if it's not too long), or a short example showing what
you're doing (if the original is too long).

Robin S.
-----------------------
"Rob" <xi****@hotmail.comwrote in message
news:11**********************@q2g2000cwa.googlegro ups.com...
>I use VB.net 2005 and designer-generated typed dataset. Within the
dataset, there is a table adapter and the table adapter has a public
Insert method. So I tried to call the Insert method with my own
parameters but it causes an exception that says "object reference not
set to an instance of an object". Most of the parameters are string,
decimal and date that have been CTyped so it doesn't seem to be the
problem of the parameters. Any idea?

Rob

Feb 3 '07 #3

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

Similar topics

2
3358
by: Erik Grob \(MCP\) | last post by:
Does anyone know where to find or how to write a quick user defined fucntion that will return a table object when passed the string name of the table object. The reason why I want dynamicallly set...
1
3730
by: IkBenHet | last post by:
Hello, I found this script to create a simple rich text form (http://programmabilities.com/xml/index.php?id=17): <html> <head> <title>Rich Text Editor</title> </head> <body>
1
1665
by: Paloma GarcĂ­a | last post by:
Dear all, I have created personalized configuration sections in my web project following the instructions described in this page...
0
1564
by: Harmony407 | last post by:
Hello: I am currently creating a database in which a user can scan an image into MS Access. The images once scanned, will be held in a seperate table. Here is my problem. The scanner is not...
0
1192
by: Michael Chong | last post by:
I have an (exe) executable program created in VB.NET 2003 that calls to a MFC DLL written in VC++.NET 2003. I always get an error msg "NullReferenceException: Object Reference Not Set to an...
2
5299
by: Giovanni Bassi | last post by:
Hello All, I have encountered a problem. I am using visual inheritance and my base form adds an event handler on Form Load using the AddHandler Keyword. The problem is that if the Event...
2
1848
by: facole | last post by:
I'm new to the .net environment. What I'm trying to do is to have an html page call a .aspx application and pass certain information. I have a field in the html file <input type="text"...
5
1770
by: lefterist | last post by:
Good afternoon, I 've got the followin code to validate a form, and get the "error:object expected (line 171 char. 1, line 172, char 2)" even if i tried to solve it (parentheses, function syntax...
6
3131
by: Patient Guy | last post by:
I am a newcomer to using PHP but not to programming (C, C++, Javascript). I am playing around with classes and wanted to make a function that has a method simply for producing either plain text...
7
2933
by: Ibys | last post by:
hi, hoping i have posted this in the right section this time :) i am doing my javascript still, and cant figure out why i keep getting an error: object expected message for validateform() im just...
0
7265
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
7388
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
7545
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...
1
7111
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...
1
5095
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
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.