
15-07-2006, 11:10
|
|
|
|
חבר מתאריך: 15.07.06
הודעות: 21
|
|
|
הייתה רק בעיה של if אתה פשוט לא מכיר ביסודות את התוכנה אבל הנה נראה לי שתיקנתי לך:
קוד:
Private Sub chkExperience_Click()
If Me.chkExperience.Value Then
Me.lblExperience.Visible = True
Me.txtExperience.Visible = True
Else
Me.lblExperience.Visible = False
Me.txtExperience.Visible = False
End If
End Sub
Private Sub cmcExit_Click()
End
End Sub
Private Sub cmdResult_Click()
Dim strTemp As String
Dim boolMale As Boolean
Dim boolFemale As Boolean
Dim intMsgBox As Integer
boolMale = Me.optMale.Value
boolFemale = Me.optFemale.Value
If boolMale = True Then
If Me.chkArmyOfficer.Value = True Then
strTemp = "שירתתי בצבא כקצין" & "אני בן."
End If
ElseIf boolFemale = True Then
If Me.chkArmyOfficer.Value = True Then
strTemp = "שיררתי בצבא כקצינה" & "אני בת."
End If
End If
If Me.optAgeTo18.Value = True Then
strTemp = strTemp & " פחות מגיל 18, "
ElseIf Me.optAge19To39.Value = True Then
strTemp = strTemp & "בין 19 ל-39, "
ElseIf Me.optAge40To64.Value = True Then
strTemp = strTemp & " בין 40 ל-64, "
ElseIf Me.optAge65Plus.Value = True Then
strTemp = strTemp & " מעל גיל 65, "
End If
If Me.chkExperience.Value Then
If Me.chkShowExperienceInResults.Value = True Then
strTemp = strTemp & "והניסיון שלי הוא:" & vbCr & Me.txtExperience.Text & vbCr
ElseIf Me.chkShowExperienceInResults = False Then
strTemp = strTemp & "אין לי ניסיון." & vbCr
End If
End If
intMsgBox = MsgBox(strTemp, vbMsgBoxRight + vbMsgBoxRtlReading + _
vbInformation + vbYesNo, "פרטים עבור " & Me.txtName.Text)
If intMsgBox = vbYes Then
MsgBox "התקבלת " & Me.txtName.Text & " נרשמת לעבודה,תודה!", vbMsgBoxRtlReading
ElseIf intMsgBox = vbNo Then
MsgBox "דחויית " & Me.txtName.Text & " נרשמה,תודה!", vbMsgBoxRight
End If
End Sub
|