Originally posted by StarPuppy:
hmm...sorry mayi..making u confused
ok..let me try to make it easier to understand
i am doing my assignment on a salary form.. stuck with
- i have a drop down list that states "Single" or "Married" now... those who are married + $500 to their salary so... how do i do the configuration?
e.g: text1.text = Val(Normal.text) + Val("marital status")
- when i click the "Submit" button ... my NRIC is on the 1st tab whereas my salary is on the 2nd tab ..so how do i make the button switch to the 2nd tab
1st one I can help. Second one I don't know.
Use If Then Else
Assuming that the drop-down box name is ComboBox, has 2 items single and married:
ComboBox.SelectedItem = "Single"
Then MsgBox("Your salary has not been increased.")
Else
MsgBox("$500 has been added to your salary.")When they select either value, a popup will appear, telling them whether their salary has been changed. For singles, no change. For married couples, it will popup telling that it has been changed.
You can edit it to add names.
For example,
Dim name As String
name = textbox.Text
ComboBox.SelectedItem = "Single"
Then MsgBox("Dear " + textbox.Text + ", " + " Your salary has not been increased.")
Else
MsgBox("Dear " + textbox.Text + ", " + " $500 has been added to your salary.")This will produce a popup saying "Dear (name), your salary has not been increased or Dear (name), $500 has been added to your salary."