fafster Posted November 12, 2008 Posted November 12, 2008 I need to be able to change the contents of a label based on what is selected in a list box. Here's what I have so far: Private Sub List5_AfterUpdate() label_pupilname.Caption = List5.SOMETHING End Sub How do I get a particular field from the list box? Cheers.
Scruff Posted November 12, 2008 Posted November 12, 2008 List5.Value If you just want the selected item
fafster Posted November 12, 2008 Author Posted November 12, 2008 Cheers for the reply. That's what I attempted initially, but then had to incorporate it into an sql call as the value returned was the id.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now