I have a form called frmAddStudentData , being used by students one time only when they enrol and when the user clicks save, i want to save the data, and make sure that everything is wiped clean because the next student should never see what the last student did (some of it is confidential).
I currently have a ClearAll sub which sort of works but i would think
Me.Close()
Dim studentDetails As frmAddStudentData = New frmAddStudentData()
studentDetails.ShowDialog()
would close the first form and open a fresh copy? instead it just creates a new copy. What am i doing wrong? Should i have a variable that points to the first form, and close that instead like
dim ToBeClosed = me 'not sure how to code this
Dim studentDetails As frmAddStudentData = New frmAddStudentData()
studentDetails.ShowDialog()
ToBeClosed.Close
Thanks for your help!
I currently have a ClearAll sub which sort of works but i would think
Me.Close()
Dim studentDetails As frmAddStudentData = New frmAddStudentData()
studentDetails.ShowDialog()
would close the first form and open a fresh copy? instead it just creates a new copy. What am i doing wrong? Should i have a variable that points to the first form, and close that instead like
dim ToBeClosed = me 'not sure how to code this
Dim studentDetails As frmAddStudentData = New frmAddStudentData()
studentDetails.ShowDialog()
ToBeClosed.Close
Thanks for your help!