473,387 Members | 1,603 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,387 software developers and data experts.

How to modify the if statement in VB 6.

Hi, im newbie here.

I want to know how i gonna solve my problem in my system. My system is Profession Assessment System which will gonna solve the inputted answer of the examinee that will lead to the type of intelligence, explaination, capabilities and profession that he/she possesses.

These are the coding of my program;

Label12.Caption = Adodc1.Recordset.Fields("lin_ver")
Label13.Caption = Adodc1.Recordset.Fields("log_math")
Label14.Caption = Adodc1.Recordset.Fields("spa_vis")
Label15.Caption = Adodc1.Recordset.Fields("bod_kin")
Label16.Caption = Adodc1.Recordset.Fields("music")
Label17.Caption = Adodc1.Recordset.Fields("inter")
Label18.Caption = Adodc1.Recordset.Fields("intra")


'verbally/linguistic intelligence
If Val(Label12.Caption) > Val(Label13.Caption) Or Val(Label12.Caption) > Val(Label14.Caption) Or _
Val(Label12.Caption) > Val(Label15.Caption) Or Val(Label12.Caption) > Val(Label16.Caption) Or _
Val(Label12.Caption) > Val(Label17.Caption) Or Val(Label12.Caption) > Val(Label18.Caption) Then
Label1.Caption = Val(Label12.Caption)
Label4.Caption = "Verbal/Linguistic Intelligence(Word Smart)"
Label6.Caption = "Verval/Linguistic Intelligence relates to word and language, " & "" & _
"" & "we use this intelligence in listening, speaking, reading & writing. " & "" & _
"" & "(a)Thinks in words " & "" & _
"" & "(b)Highly developed auditory skills " & "" & _
"" & "(c)Play with sounds in laguage " & "" & _
"" & "(d)Great story tellers, tall tales, & jokes " & "" & _
"" & "(e)Love seeing,saying & hearing words " & "" & _
"" & "(f)Head are frequently stuck in a book " & "" & _
"" & "(g)Likes to write"
Label8.Caption = "Understanding order & meaning of words, " & "" & _
"" & "Convincing someone of a course of action, " & "" & _
"" & "Explaining,teaching, & learning, " & "" & _
"" & "Memory and recall, " & "" & _
"" & "Meta-linguistic analysis. "
Label10.Caption = "You can be a Teacher, Journalist, Writer, Lawyer, " & "" & _
"" & "and Translator"
'logical/mathematical intelligence
If Val(Label13.Caption) > Val(Label12.Caption) Or Val(Label13.Caption) > Val(Label14.Caption) Or _
Val(Label13.Caption) > Val(Label15.Caption) Or Val(Label13.Caption) > Val(Label16.Caption) Or _
Val(Label13.Caption) > Val(Label17.Caption) Or Val(Label13.Caption) > Val(Label18.Caption) Then
Label1.Caption = Val(Label13.Caption)
Label4.Caption = "Logical/Mathematical Intelligence(Number Smart)"
Label6.Caption = "Logical/Mathematical Intelligence deals w/ inductive reasoning, " & "" & _
"" & "numbers and relationships. It INVOLVES ABILITY TO RECOGNIZE PATTERNS,to work w/ " & "" & _
"" & "geometric shapes and to make connection between pieces of information. " & "" & _
"" & "(a)Thinks conceptually. " & "" & _
"" & "(b)Skilled in reasoning, logic, and problem solving " & "" & _
"" & "(c)Explores patterns, categories and relatioships " & "" & _
"" & "(d)Manipulates the environment to experiment in a controlled way " & "" & _
"" & "(e)Controls and wonders about the natural events"
Label8.Caption = "Abstract pattern recognition, " & "" & _
"" & "Inductive reasoning, " & "" & _
"" & "Deductive reasoning, " & "" & _
"" & "Discerning relationships and connections, " & "" & _
"" & "Performing complex calculation, " & "" & _
"" & "Scientific reasoning. "
Label10.Caption = "You can be a Scientist. Engineer, Computer Programmer, " & "" & _
"" & "and Accountant."
'spatial/visual intelligence
If Val(Label14.Caption) > Val(Label12.Caption) Or Val(Label14.Caption) > Val(Label13.Caption) Or _
Val(Label14.Caption) > Val(Label15.Caption) Or Val(Label14.Caption) > Val(Label16.Caption) Or _
Val(Label14.Caption) > Val(Label17.Caption) Or Val(Label14.Caption) > Val(Label18.Caption) Then
Label1.Caption = Val(Label14.Caption)
Label4.Caption = "Spatial/Visual Intelligence(Picture Smart)"
Label6.Caption = "Spatial/Visual Intelligence includes being able to visualize an object " & "" & _
"" & "and to create images. It deals w/ visual arts, navigation, architecture and certain games " & "" & _
"" & "such as chess. " & "" & _
"" & "(a)Thinks in images and pictures " & "" & _
"" & "(b)Clear visual images and representations " & "" & _
"" & "(c)Knows the location of everything " & "" & _
"" & "(d)Fascination w/ machines and contraptions" & "" & _
Label8.Caption = "Active imagination, " & _
"" & "Forming mental images, " & "" & _
"" & "Finding your way in space, " & "" & _
"" & "Image manipulations, " & "" & _
"" & "Graphic representation, " & "" & _
"" & "Recognizing relationships of objects in space, " & "" & _
"" & "Accurate perception from different angles. "
Label10.Caption = "You can be a Inventor, Architect, Engineer and Mechanic"
'bodily/kinesthetic intelligence
If Val(Label15.Caption) > Val(Label12.Caption) Or Val(Label15.Caption) > Val(Label13.Caption) Or _
Val(Label15.Caption) > Val(Label14.Caption) Or Val(Label15.Caption) > Val(Label16.Caption) Or _
Val(Label15.Caption) > Val(Label17.Caption) Or Val(Label15.Caption) > Val(Label18.Caption) Then
Label1.Caption = Val(Label15.Caption)
Label4.Caption = "Bodily/Kinesthetic Intelligence(Body Smart)"
Label6.Caption = "Bodily/Kinesthetic Intelligence is related to physical of the body " & "" & _
"" & "and how it functions. It includes the ability to use the body to express emotions, " & "" & _
"" & "to play a game, and to interpret and to invoke effective body language. " & "" & _
"" & "(a)Processes knowledge through bodily sensation " & "" & _
"" & "(b)Excellent fine-motor coordination " & "" & _
"" & "(c)Gut feelings about things " & "" & _
"" & "(d)Great in mimicking your best or worst qualities and mannerisms " & "" & _
"" & "(e)Needs to move around, often labeled hyperactive"
Label8.Caption = "Controls of Voluntary Movements, " & "" & _
"" & "Control of Programmed Movements, " & "" & _
"" & "Expanding awareness through the body connection, " & "" & _
"" & "Mimetic Abilities, " & "" & _
"" & "Improved body functioning. "
Label10.Caption = "You can be a Athlete, Dancer, Actor, Mime and Clown"
'musical/rhythmic intelligence
If Val(Label16.Caption) > Val(Label12.Caption) Or Val(Label16.Caption) > Val(Label13.Caption) Or _
Val(Label16.Caption) > Val(Label14.Caption) Or Val(Label16.Caption) > Val(Label15.Caption) Or _
Val(Label16.Caption) > Val(Label17.Caption) Or Val(Label16.Caption) > Val(Label18.Caption) Then
Label1.Caption = Val(Label16.Caption)
Label4.Caption = "Music/Rhythmic Intelligence(Music Smart)"
Label6.Caption = "Music/Rhythmic Intelligence includes the ability to recognize tonal patterns, " & "" & _
"" & "rhythms and beat. It includes sensitivity to environmental sounds, the human voice and " & "" & _
"" & "musical instrument. " & "" & _
"" & "(a)Thinks in sounds, rhythms and patterns " & "" & _
"" & "(b)Sings, hums, whistles to themselves " & "" & _
"" & "(c)Immediately responds to music " & "" & _
"" & "(d)Performs and appreciate music and leads in songs " & "" & _
"" & "(e)Sensitive to environmental sounds: crickets, bell, ambient music " & "" & _
"" & "(f)Strong opinions of other's music"
Label8.Caption = "Appreciation for the Structure of Music, " & "" & _
"" & "Schemes of Fames in the mind for hearing, " & "" & _
"" & "Sensitivity of sounds, " & "" & _
"" & "Recognition, Creation, and REproduction of Melody/Rhythm, " & "" & _
"" & "Sensing characteristic qualities of a tonic. "
Label10.Caption = "You can be a Choir, Orchestra, Band, Disc Jockey and Theatre"
'interpersonal intelligence
If Val(Label17.Caption) > Val(Label12.Caption) Or Val(Label17.Caption) > Val(Label13.Caption) Or _
Val(Label17.Caption) > Val(Label14.Caption) Or Val(Label17.Caption) > Val(Label15.Caption) Or _
Val(Label17.Caption) > Val(Label16.Caption) Or Val(Label17.Caption) > Val(Label18.Caption) Then
Label1.Caption = Val(Label17.Caption)
Label4.Caption = "Interpersonal Intelligence(People Smart)"
Label6.Caption = "Interpersonal Intelligence is used in person to person relationship. It includes " & "" & _
"" & "the ability to communicate with others and to have empathy for their feelings and beliefs. " & "" & _
"" & "(a)Thinks and processes by relating, cooperating, and communicating with others. " & "" & _
"" & "(b)Leaders among peers " & "" & _
"" & "(c)Uncanny ability to sense feelings and intentions of others " & "" & _
"" & "(d)Understands people, mediates conflict " & "" & _
"" & "(e)Organizer, Communicator at times manipulative " & "" & _
"" & "(f)Street smart, has many friends"
Label8.Caption = "Effective verbal/non-verbal communication, " & "" & _
"" & "Noticing and making distinctions among other individuals, " & "" & _
"" & "Sensitivity to other's moods, temperaments, motivation and feelings, " & "" & _
"" & "Working cooperative in a group, " & "" & _
"" & "Ability to discern other's underlying intentions and behavior, " & "" & _
"" & "Passing Over into the perspective of another, " & "" & _
"" & "Creating and maintaining synergy. "
Label10.Caption = "You can be a Counselor, Business people, Politician, Community Organizer"
'intrapersonal intelligence
If Val(Label18.Caption) > Val(Label12.Caption) Or Val(Label18.Caption) > Val(Label13.Caption) Or _
Val(Label18.Caption) > Val(Label14.Caption) Or Val(Label18.Caption) > Val(Label15.Caption) Or _
Val(Label18.Caption) > Val(Label16.Caption) Or Val(Label18.Caption) > Val(Label17.Caption) Then
Label1.Caption = Val(Label18.Caption)
Label4.Caption = "Intrapersonal Intelligence(Self Smart)"
Label6.Caption = "Intrapersoanl Intelligence is based on knowledge of the self. It includes " & "" & _
"" & "metacognition (thinking about thinking), emotional responses, self reflection, and an " & "" & _
"" & "awareness of metaphysical concepts " & "" & _
"" & "(a)Skilled inner focusing " & "" & _
"" & "(b)Displays a strong personality " & "" & _
"" & "(c)Deep awareness of inner feelings, dreams, and ideas " & "" & _
"" & "(d)Reflective and analytical " & "" & _
"" & "(e)Tends to shy away from team activities " & "" & _
"" & "(f)Recognizes self strengths and weaknesses " & "" & _
"" & "(g)Requires private space and time"
Label8.Caption = "Concentration of the mind, " & "" & _
"" & "Mindfulness, " & "" & _
"" & "Metacognition, " & "" & _
"" & "Awareness and expression of different feelings, " & "" & _
"" & "Higher order of thinking, " & "" & _
"" & "Transparent sense of self reasoning. "
Label10.Caption = "You can be a Philosopher, and Councilor"
End If
End If
End If
End If
End If
End If
End If
Sep 5 '07 #1
3 896
hariharanmca
1,977 1GB
Dont post bulky code.

Explain your problem detail with front-end and version.

and what is error you are getting?
Sep 5 '07 #2
debasisdas
8,127 Expert 4TB
Do you want to show us how many lines of code you have written ?

Please specify your doubt written in clear concise language using correct grammar and spelling .

Kindly use proper code tags for all your code, it will make the code more readable..
Sep 5 '07 #3
sgrec7
59
yea can't clearly see the problem... but in saying that, if the question is as simple as the name of the thread then:

to change an if statement, one simply BACKSPACES over the incorrect code and types the new, and hopefully correct code in the correct space.

but that seems too simple, so the question must be more in depth

but i cant read it so, so at least i get points for trying

sgrec7
Sep 5 '07 #4

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

Similar topics

4
by: sinister | last post by:
Is it possible to modify a string in one place using an indexing operator and an assignment statement? E.g.: $s = "1234567890"; $s = "d"; // $s is now "12345d7890" According to _PHP Bible_...
20
by: CoolPint | last post by:
While I was reading about const_cast, I got curious and wanted to know if I could modify a constant variable through a pointer which has been "const_cast"ed. Since the pointer would be pointing to...
16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
4
by: John | last post by:
I am using code provided by Mr. Steele that allows for my MDB to dynamically connect to remote SQL server databases. The code works fine as follows: Type TableDetails TableName As String...
4
by: italiak | last post by:
Hello everyone- I have these 500 queries in access. They all do the same thing (append data from big database to a table) and have similar condition. I was wondering if there is a way I can...
2
by: bs | last post by:
I have a hashtable that contains structures. Is it possible to modify a value of one of these structures. It only seems to work if the hash contains class objects, not structures?
2
by: Zaphod Beeblebrox | last post by:
Hi There; This is a silly question but I have to ask this. I want to create a query (SQL statement would be good!) that will do the following: 1. modify the data in the field of my choice;...
2
by: Benjamin Rutt | last post by:
I often execute a long-running python script which is a "driver" for my application; it may run for several hours on a large input. Under CPython, is it safe for me to modify the Python script...
2
by: Khundeen | last post by:
Hi, I am trying to modify the primary key of a table. We need to add new field and make it part of the Primary key of the table. I thought I can use this SQL Statement. ALTER TABLE...
1
by: macupryk | last post by:
Need to modify the stored proc where we can add the REP_NAME. to an existing crystal report. I will also need to order by REP_NAME and group by REP_NAME. Many customer id's can belong to one Sales...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.