By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,021 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Different Multiple Form

100+
P: 134
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 :..........Option
John ......... Frm1 / Frm2
David..........Frm5 / Frm3
Peter .........Frm 7 / Frm 9


[Enter]
Apr 25 '08 #1
Share this Question
Share on Google+
7 Replies


smartchap
100+
P: 236
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.
Apr 26 '08 #2

100+
P: 134
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
Apr 26 '08 #3

smartchap
100+
P: 236
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="TeacherA" then
frmTeachA1.Show vbModal
frmTeachA2.Show vbModal
elseif combo1.text="TeacherB" 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.
Apr 26 '08 #4

Expert 100+
P: 487
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.
Apr 26 '08 #5

100+
P: 134
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
Apr 26 '08 #6

100+
P: 134
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="TeacherA" then
frmTeachA1.Show vbModal
frmTeachA2.Show vbModal
elseif combo1.text="TeacherB" 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
Apr 26 '08 #7

smartchap
100+
P: 236
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.
May 23 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.