Advertisement

12.18.2007 at 01:33AM PST, ID: 23030160
[x]
Attachment Details

C# recordset AddNew

Asked by Sylpheed777 in Microsoft Visual C#.Net, Programming for ASP.NET, Visual Studio .NET 2003

Tags: recordset

hi all

I'm trying to do recordset in C# & asp.net

i keep getting the object not set to reference error.

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
FilterJobRS.AddNew(Missing.Value, Missing.Value);
FilterJobRS.Fields["JobID"].Value = "";
FilterJobRS.Fields["JobName"].Value = "";
FilterJobRS.Fields["UserName"].Value ="JonDoe";
FilterJobRS.Fields["Queue"].Value = "";
FilterJobRS.Fields["Host"].Value = "";
FilterJobRS.Fields["Options"].Value = 4;//iStatus;
FilterJobRS.Update(Missing.Value, Missing.Value);
 
it seems to be failing at the lines
FilterJobRS.Fields["JobID"].Value = "";
FilterJobRS.Fields["JobName"].Value = "";
FilterJobRS.Fields["UserName"].Value ="JonDoe"
FilterJobRS.Fields["Queue"].Value = "";
FilterJobRS.Fields["Host"].Value = "";
FilterJobRS.Fields["Options"].Value = 4;//iStatus;
 
 
Could anyone advice? Unfortunately i have to use recordset in C# as i don't have access to the other component that uses this recordset.
[+][-]12.18.2007 at 01:41AM PST, ID: 20490836

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.18.2007 at 01:44AM PST, ID: 20490848

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, Programming for ASP.NET, Visual Studio .NET 2003
Tags: recordset
Sign Up Now!
Solution Provided By: pratima_mcs
Participating Experts: 1
Solution Grade: A
 
 
[+][-]12.18.2007 at 04:04PM PST, ID: 20496680

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.18.2007 at 11:48PM PST, ID: 20498093

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628