Visual Basic help please

lol thanks shadez

So i have 2 pictures

Pic 1 for Fail = Thumbs down

Pic 2 for pass, merit, distinction = Thumbs up

I have to hand this is on disk to my tutor so i take it that the pictures that i use must be included on the disk?
 
lol tell me about it!!!

I have finally finished, i have given up on the displaying 1 of 2 pictures depending on grades.

Just annotating all the code now and then have to evaluate.

Does anyone know how i printout the commented code and screen dumps?

EDIT: Ok just when i thought it was all over - IT WASN'T!!!!

I have to define the class box to only accept the number 1, 2 or 3 and if another number is entered a error message is to be displayed. I know how to do the error message, i think its : MsgBox "Error Please enter 1,2 or 3!"

But im not sure how to set it to take only 1,2 or 3 can anyone point me in the right direction please?
 
Last edited:
could i not just put

If txtclass >3 Then
MsgBox "Please enter class number 1,2 or 3!"
End If

EDIT:

I have used a combo box now and have set that up without a problem, but the problem i'm having now is trying to display what the user selects on the output screen (form2).

I have used

form2.lblclassout.caption = class.text

But i dont think text should be used with a combo box so what do i need to change it to?
 
Last edited:
I have changed it so that there are only 3 options available :

Class 1
Class 2
Class 3

but when using form2.lblclassout.Caption = class.text i am not getting the selection displayed on form 2

I want to cry
 
lol jaffa cake, thanks mate i appreciate it.

But im in college now and no msn on here and they won't let us connect to the wireless network. Oh and i'm handing this in today :rolleyes:

All i want is for the class selection to be displayed on the output form but the code i used doesnt seem to work here is the exact code from the drop down combo box which is located on form1 (input form) and i want the slection to be displayed on the output form (form2).

Private Sub Class_Change()
class.additem "Class 1"
class.additem "Class 2"
class.additem "Class 3"
form2.lblclassout.Caption = class.text
End Sub
 
I'm not sure what you mean i have add MsgBox ("Debugging") at the top of my Sub but that doesn't seem to help.

I thought by using a combo menu (as kindly advised by shadez) it would allow me to get away with not using an error message as the user can only select the correct options. But getting the slection to display is proving to be a pain in the .....
 
Yeah jaffa cake i love you!!!!

Lol i just added the first sub you posted and that has got it working. Would you recommened still adding the second sub?
 
Back
Top Bottom