hi i'm trying to make a game using visual basic but am having difficulty connecting this up to a database
i have connected the database to the program and made a dataset using this but every time i try and edit the information using buttons i get back an error saying that
!Reference to a non-shared member requires an object reference!
this is the code i have trying to edit the information
CODE
Private Sub Human_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Human.Click
Dim newCharactor As GameDataDataSet.CharactorRow()
newCharactor = GameDataDataSet.Charactor.CharactorRow()
newCharactor.Name = CharName.Text
newCharactor.Race = "Human"
GameDataDataSet.Charactor.Rows.Add(newCharactor)
FrmClass.Show()
Me.Hide()
EndSub
the database is named GameData.mdb and the dataset is called GameDataDataSet.xsd
is there some kind of code that i am missing or something i need to do to either the dataset or the database as i cannot find out how to do this.
any help will be apreciated