Groups | Blog | Home
all groups > vb.net data > december 2004 >

vb.net data : Simple Question - Access DB and VB updating Rows....



CXJ
12/17/2004 10:11:50 AM
Hi,
Does anybody know where I can find some information on Database
access/update/delete through VB.NET

I'm creating a program with multiple forms, which needs to select,add,delete
record from an ACCESS DB.

It is my first DB project and I'm totally lost...

Any help I would greatly appreciate it...

Thank you,
CJ

CXJ
12/17/2004 10:23:48 AM
Sorry I forgot to include the error message

Additional information: Object reference not set to an instance of an
object.
I'm getting the above error, referencing my DIM statement below...

DIM newRow As DataRow = DsInfo1.StateInfo.newRow


[quoted text, click to view]

Jan Nielsen
12/28/2004 2:32:17 PM
Hi CXJ
Database programming is a quite complicated topic.
May I suggest you get a book on the subject.
Almost any book on VB.Net contains chapters on simple database stuff.
You can also buy a book like "Visual Basic. Net database programming for
dummies" by Richard Mansfield.
Look on Amazon for ".Net database"

With your particular situation try
DIM newRow As DataRow = DsInfo11.StateInfo.newRow
(Notice the extra 1 in DsInfo1)
Maybe your dataset class is called DsInfo1 and your dataset instance is
called DsInfo11

hth

Jan





"CXJ>" <Sun4life@its-raining.com> skrev i en meddelelse
news:DqSdncduJ6edZ1_cRVn-sg@comcast.com...
[quoted text, click to view]

AddThis Social Bookmark Button