Re: Object reference not set to an instance of an object.
From: Nab (Nab_at_discussions.microsoft.com)
Date: 02/09/05
- Next message: JD: "Using Access as a frontend to a sql server 2000 DB"
- Previous message: Nab: "Re: Object reference not set to an instance of an object."
- In reply to: Aaron Weiker: "Re: Object reference not set to an instance of an object."
- Next in thread: Nab: "Re: Object reference not set to an instance of an object."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 8 Feb 2005 19:47:03 -0800
Thanks, but there is no luck here! Debugging it further produces this message
box "A first chance exception of type 'System.NullReferenceException'
occurred in system.xml.dll"
Additional information: Object reference not set to an instance of an object.
"Aaron Weiker" wrote:
> Try this instead. I'm not sure on the array syntax as I'm a C# developer
> and I forget the VB syntax but I think this is write.
> ********************************************************
> Dim objParam As SqlParameter
> objCmd.Parameters.Add("@names", SqlDbType.VarChar)
> objCmd.Parameters("@names").Direction = ParameterDirection.Input
> objCmd.Parameters("@names").Value = eaName
> ********************************************************
>
>
> --
> Aaron Weiker
> http://aaronweiker.com/
> http://www.sqlprogrammer.org/
>
- Next message: JD: "Using Access as a frontend to a sql server 2000 DB"
- Previous message: Nab: "Re: Object reference not set to an instance of an object."
- In reply to: Aaron Weiker: "Re: Object reference not set to an instance of an object."
- Next in thread: Nab: "Re: Object reference not set to an instance of an object."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|