Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with my error
#1
my erro:

Value cannot be null.
Parameter name: dataSet

heres my code:

[code2=vbnet]Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click



Dim da As New MySqlDataAdapter("Update personalinfo, schoolinfo set sno = '" & txtSno.Text & "',
lastname = '" & txtLastName.Text & "',
middlename = '" & txtMiddleName.Text & "',
gender = '" & cmbGender.Text & "',
dateofbirth = '" & txtBirthday.Text & "',
school = '" & txtCollege.Text & "',
course = '" & cmbCourse.Text & "',
department = '" & txtDepartment.Text & "',
dateenrolled = '" & txtEnrolled.Text & "',
yeargraduated = '" & txtGraduated.Text & "',
where no = '" & txtSno.Text & "'", MySQLConn)

da.Fill(ds)
Me.Hide()

frmMain.showData()[/code2]

im trying to edit and save the info here.. the error appears above.


Messages In This Thread
help with my error - by jochen29 - 09-08-2012, 04:47 PM
Re: help with my error - by jochen29 - 09-08-2012, 08:04 PM
Re: help with my error - by jochen29 - 09-08-2012, 09:47 PM
Re: help with my error - by jochen29 - 09-09-2012, 12:44 AM
Re: help with my error - by manishshrestha60 - 09-10-2012, 05:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TwitterAPIException - Error TwitterVB Crammer 3 14,514 10-14-2012, 09:06 PM
Last Post: brandonio21

Forum Jump:


Users browsing this thread: 1 Guest(s)