I have written a database that keeps logs all the track and field results for my school, and I want to make it a little more user friendly. On the form where results are entered, the label for the field where the results are entered says "Final Time" But I want to change the caption based off of whether they have a running event or an event that measures feet/inches. So, for example, if it is a long jump result, I want the label to say long jump.
There is a combo box where the user can choose the event they are adding a result for. And I know the code that I want to add. It is
If me.cboEvent.SelText = "Long Jump" or "Discus" or "Triple Jump" or "Shot Put" or "High Jump" then me.lblFinalTime.Caption = "Best Throw"
End If
I just don't know where to put it. I want this to occur as soon as a user selects an item from the combo box, but I also want the label to change as the user scrolls through the records based off of what was selected in the combo box. I assume to do this, I need to copy and paste the code into two separate events, I just don't know what ones they are. Any help would be greatly appreciated!
There is a combo box where the user can choose the event they are adding a result for. And I know the code that I want to add. It is
If me.cboEvent.SelText = "Long Jump" or "Discus" or "Triple Jump" or "Shot Put" or "High Jump" then me.lblFinalTime.Caption = "Best Throw"
End If
I just don't know where to put it. I want this to occur as soon as a user selects an item from the combo box, but I also want the label to change as the user scrolls through the records based off of what was selected in the combo box. I assume to do this, I need to copy and paste the code into two separate events, I just don't know what ones they are. Any help would be greatly appreciated!