473,378 Members | 1,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Different Multiple Form

134 100+
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
7 1670
smartchap
236 100+
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
jamesnkk
134 100+
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
236 100+
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
CyberSoftHari
487 Expert 256MB
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
jamesnkk
134 100+
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
jamesnkk
134 100+
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
236 100+
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

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

Similar topics

1
by: lawrence | last post by:
I'm trying to read up on the rfc's that govern form inputs. Much of what I'm reading is stuff I didn't know before and some of it is alarming. This one left with me questions: ...
2
by: JK | last post by:
Hi All, I am working a form which is tabular layout (continuous form) which will display multiple records at a time. Each line of record needs to be reflected on the color code to show their...
1
by: Zurghew | last post by:
Hello all, I have just created a database (partially) which will bill customers for work done. However I am stuck when it is comes to different rates for different works. REQUIRED: What I...
4
by: Burghew | last post by:
Hi all, I am trying to design a database in access 2002. I have multiple category of items such as computers which may include laptop, server, pc...all of these items have different attributes,...
0
by: ghadley_00 | last post by:
MS Access Create form / report with multiple pages using different background images Hi, Would like to have users fill out a multipage form, and then click a print button, which pulls up the...
2
by: Greg Merideth | last post by:
Using Visual C# I created two forms such as namespace test { public class SystemTray : System.Windows.Forms.Form { public createwindow() { stuff here; } public fadewindow() { stuff to fade...
7
by: Lucas Tam | last post by:
Hi all, What is the best way to do this: -I have a form, that has a couple of options (paths through the program), A, B, and C. -Each option has it own set of displays In essence I have:
5
by: tlyczko | last post by:
Hello, I've searched on toggling divs and didn't really find what I was looking for, I saved a bunch of different threads. I have a form with several different text boxes for things like dates,...
3
by: Bazza | last post by:
Hiya, New to VB.NET so this is probably a fairly easy solution(?!?!) I have an application which currently uses singleton forms. Great - everything worked fine except the users now want the...
58
by: bonneylake | last post by:
Hey Everyone, Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.