Results 1 to 6 of 6

Thread: Adding Forms

  1. #1

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674

    Unhappy

    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

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    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.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You could add them up in a collection

    Private students as collection

    students.Add New frmStudent
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    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.

  5. #5
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    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).

  6. #6

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width