hi,
i'm tryin to create this math questions form for my sister. the form has 2 labels where random numbers show, a text box where the answer is entered, a next button the next numbers and an exit button.
This is my next button and my random number generator.
Private Sub Command2_Click()
'
If Val(lbl1) * Val(lbl2) = txta.Text Then 'txta.text is the textbox were the answer is entered
txta.Text = ""
Random
lblQno.Caption = Val(lblQno.Caption) + 1 ' label showa how many questions answered
ElseIf Not Val(lbl1) * Val(lbl2) = txta.Text Then
txta.Text = ""
Random
lblQno.Caption = Val(lblQno.Caption) + 1
End If
End Sub
Public Sub Random()
Randomize
lbl1 = Int(Rnd * 13)
lbl2 = Int(Rnd * 13)
End Sub
what i want is that when the question is answered the numbers on lbl1 and lbl2 should then be in caption in 2 other labels on another form. this should happen even if the answer is wrong. i'm thinkin that it may be some array or something but i'm not sure. Could anyone please help me solve this problem & if there is anything i need to further explain then please tell me. THANK YOU