Kenny Eng
Kenny Eng

Reputation: 149

How to delete a particular field record on access database

I wonder to know how to delete a particular field record

ds_Subject.Tables("iswe").Rows(0).Item(2).Delete()

This is what I've tried but it gave me an error

An unhandled exception of type 'System.MissingMemberException' occurred in Microsoft.VisualBasic.dll

Additional information: Public member 'Delete' on type 'DBNull' not found.

Upvotes: 0

Views: 67

Answers (1)

F0r3v3r-A-N00b
F0r3v3r-A-N00b

Reputation: 3003

You can only delete a row.

 ds_Subject.Tables("iswe").Rows(0).Delete()

If you want to change the contents of a particular column, do an assignment

 ds_Subject.Tables("iswe").Rows(0)("columnname") = <your value>

Upvotes: 2

Related Questions