hunsnowboard
06-09-2011, 02:08 AM
Hi there Everyone!
I have a problem with displaying data in a textbox. Here is my problem:
I have a form and on the form I have a listbox and a textbox. As I click on one of the records on my listbox (the listbox contains names) the textbox shows the description for that name.
Here is my working code:
Private Sub List0_Click()
If Not IsNull(Me!List0) Then
Me!txtTitle = Me!List0.Column(3)
End If
End Sub
This code is working very well. However when I put my textbox to a subform then the code is not working anymore and gives me an error. I am sure that the problem is that I put the textbox on a subform.
What do I need to change in my code to run on subform as well?
Thank you very much for your help in advance!
I have a problem with displaying data in a textbox. Here is my problem:
I have a form and on the form I have a listbox and a textbox. As I click on one of the records on my listbox (the listbox contains names) the textbox shows the description for that name.
Here is my working code:
Private Sub List0_Click()
If Not IsNull(Me!List0) Then
Me!txtTitle = Me!List0.Column(3)
End If
End Sub
This code is working very well. However when I put my textbox to a subform then the code is not working anymore and gives me an error. I am sure that the problem is that I put the textbox on a subform.
What do I need to change in my code to run on subform as well?
Thank you very much for your help in advance!