Different Multiple Form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamesnkk
    New Member
    • Nov 2006
    • 134

    Different Multiple Form

    Hi, My boss want to implement the following , but nobody in my office can
    think of a solution , therefore I need the VB6 experts from this forum.

    I have a form which consist of 3 User Names and each User must select 2 options from the combo box. Each option represent a different form.

    After filling the information for thee 3 users, Hit the [enter] key.
    It will activate user 1 - form 1, after completed the information, it display User 1, form 2. After completed it will check user 2 and activate form 5 & 3.and so on,
    How would i implemented such a task, Maybe I need a database to capture
    or track it, but i am so new to vb6.

    Name :..........Opti on
    John ......... Frm1 / Frm2
    David.......... Frm5 / Frm3
    Peter .........Frm 7 / Frm 9


    [Enter]
  • smartchap
    New Member
    • Dec 2007
    • 236

    #2
    Please elaborate your question. I think u require each user to select options in both the combo boxes on the main form and depending on the selections it has to display forms one by one. When all the fields in first form are filled it will show next form. Also for each user only two forms are to be shown. But for which user what forms are required? Also in combo boxes what are the selections? In each form what are the fields? Please let me know to help u.

    Comment

    • jamesnkk
      New Member
      • Nov 2006
      • 134

      #3
      Originally posted by smartchap
      Please elaborate your question. I think u require each user to select options in both the combo boxes on the main form and depending on the selections it has to display forms one by one. When all the fields in first form are filled it will show next form. Also for each user only two forms are to be shown. But for which user what forms are required? Also in combo boxes what are the selections? In each form what are the fields? Please let me know to help u.
      Thanks you for your prompt reply, OK you almost right. There be only one person operating the Main form, he will input 3 Teacher Names and select 2 options from the combo box for each Teacher . (Example of Option : History, Science, Math....)

      Once the Main form filled up all informations for the 3 teachers, I press the [Enter] the 1st form forTeacher-A will be shown up and I will filled up some information, then press [Enter] again, 2nd Form for Teacher-A will show again, Next 1st form - Teacher-B show up, fill up... 2nd form - Teacher B.....

      Note :- I have prepared all forms in advance, every form contain different fields.
      It just a matter of calling the form, SO when Teacher-A select "Math", I will display frmMath

      Comment

      • smartchap
        New Member
        • Dec 2007
        • 236

        #4
        As I undetstood after filling all data in Main form select text in combo box. In main form u can place one command button to show the form for the selected teacher. Suppose there are 3 teachers each havinh 2 forms named frmTeachA1, frmTeachA2, frmTeachB1, frmTeachB2, frmTeachC1 & frmTeachC2. In command click event place code like:

        If combo1.text="Te acherA" then
        frmTeachA1.Show vbModal
        frmTeachA2.Show vbModal
        elseif combo1.text="Te acherB" then
        frmTeachB1.Show vbModal
        frmTeachB2.Show vbModal
        else
        frmTeachC1.Show vbModal
        frmTeachC2.Show vbModal
        endif

        Baove code will show the corresponding teacher form1 modally.
        In these forms after filling all fields write code like
        Unload Me
        which will unload the form will take the control back to main form. Thus both the forms for the selected teacher will be shown and can be filled.

        I tink it will solve ur problem. If anything else don't hesitate to ask with clear requirement with details.

        Comment

        • CyberSoftHari
          Recognized Expert Contributor
          • Sep 2007
          • 488

          #5
          I assume this project is a multi user project (of-course you need database to track), and you are looking for form authentication!
          Note: Instead Simply showing form you can use tab control.

          Comment

          • jamesnkk
            New Member
            • Nov 2006
            • 134

            #6
            Originally posted by CyberSoftHari
            I assume this project is a multi user project (of-course you need database to track), and you are looking for form authentication!
            Note: Instead Simply showing form you can use tab control.
            Tab control got limit so I cannot use tab control

            Comment

            • jamesnkk
              New Member
              • Nov 2006
              • 134

              #7
              Originally posted by smartchap
              As I undetstood after filling all data in Main form select text in combo box. In main form u can place one command button to show the form for the selected teacher. Suppose there are 3 teachers each havinh 2 forms named frmTeachA1, frmTeachA2, frmTeachB1, frmTeachB2, frmTeachC1 & frmTeachC2. In command click event place code like:

              If combo1.text="Te acherA" then
              frmTeachA1.Show vbModal
              frmTeachA2.Show vbModal
              elseif combo1.text="Te acherB" then
              frmTeachB1.Show vbModal
              frmTeachB2.Show vbModal
              else
              frmTeachC1.Show vbModal
              frmTeachC2.Show vbModal
              endif

              Baove code will show the corresponding teacher form1 modally.
              In these forms after filling all fields write code like
              Unload Me
              which will unload the form will take the control back to main form. Thus both the forms for the selected teacher will be shown and can be filled.

              I tink it will solve ur problem. If anything else don't hesitate to ask with clear requirement with details.
              Thanks , is there a way not to fire 2 forms at the same time, only form1 completed, then second form fire out

              Comment

              • smartchap
                New Member
                • Dec 2007
                • 236

                #8
                Dear jamesnkk
                when you fill all the fields in a form and click an event (like command Button) that the fields are filled, 'Unload Me' event will unload that form and next form will be displayed. Both the forms will never be displayed at a time. Of course main form will be displayed all the times. To hide it you may include a line like
                Me.Hide before displaying a form modally and after Unloading this form and second form write Me.Unhide.

                Comment

                Working...