I am trying to create a feature to update a database. I have already used the INSERT data method to generate the code, but I am having trouble assigning code to a command button to update the database with a record using information supplied in text boxes. I currently have:

Sub cmdAddRecord_Click(sender As Object, e As EventArgs)
addRecord(txtAddDiscID.Text, txtAddArtist.Text, txtAddLabel.Text, txtAddRelease.Text, txtAddURL.Text)
MXdatagrid1.datasource=showdata
MXdatagrid1.databind
End Sub

in runtime it says that showdata is not defined. Can anybody tell me what showdata is referring to?

Many thanks.