Davidwazza
Programmer
Hi, I am a bit of a beginner in VBA, so...
I am writing a database based on students grade. The user inputs their percentage, and the grade is automatically calculated. It prints the grade in an "unbound textbox". How would I go about setting this up? I have the following thus far.
Select Case [intARI]
Case If >= 90
debug.print "HD"
Case 80 <= [intARI] < 90
debug.print "D"
Case 65 <= [intARI] < 80
debug.print "C"
Case 50 <= [intARI] < 65
debug.print "P"
Case Else
debug.print "F"
End Select
How do I link this VBA code to the textbox (named "ARIGrade"
, and also is the debug.print correct? Doesnt appear to be doing anything? Like, as an example, I tried putting this in an onClick, and put a MsgBox prompt also, and this worked fine, but the textbox was still empty.
Thanking in advance, David.
I am writing a database based on students grade. The user inputs their percentage, and the grade is automatically calculated. It prints the grade in an "unbound textbox". How would I go about setting this up? I have the following thus far.
Select Case [intARI]
Case If >= 90
debug.print "HD"
Case 80 <= [intARI] < 90
debug.print "D"
Case 65 <= [intARI] < 80
debug.print "C"
Case 50 <= [intARI] < 65
debug.print "P"
Case Else
debug.print "F"
End Select
How do I link this VBA code to the textbox (named "ARIGrade"
Thanking in advance, David.