I am creating an app that will keep up with info on my students. I need it to create a new form each time I add a student to my listNewStudent box.
Any help?
Thanks
JO
Printable View
I am creating an app that will keep up with info on my students. I need it to create a new form each time I add a student to my listNewStudent box.
Any help?
Thanks
JO
Here is how you would do it
Dim frmMyStudent As New frmStudent
frmMyStudent.Show
but keeping track of the several frmMyStudent copies is difficult and there is probably a better way to do what you want to do without creating a new form for each student. Please describe what it is that you want to do.
You could add them up in a collection
Private students as collection
students.Add New frmStudent
The info I'm trying to keep up with is just general stuff. These are music students, voice and guitar. I just want to keep up with: Name, Address, etc.. also instruments they play, past performances, awards, and a few personal notes about them. I thought if I had one form that I could use as sort-of a template, then I could just add the blank form each time I add a student. Also I never have more than 15 students at a time so its not like I will be continuously adding them. I mean that there will be a limit.
You have described the need for a database application. You could create a database like this:
Students
StudentID
Name
AddressLine1
AddressLine2
AddressLIne3
PersonalNotes
Instruments
StudentID
Instrument
Awards
StudentID
Award
etc. And then create a single form that retrieves and or updates the information for students based on StudentID (or perhaps name).
Thanks, I have never worked with Databases in VB but I've been doing some reasearch and I have my forms created and a database created in MS Access. I just don't know how to make it store the info when I enter it into my form. I have all the paths set up; e.g. DataControl, DataFields DataSources etc... I just need it to save the info I type into my form.
I appreciate your help,
JO