G
Guest
I have three large (and seven small) text boxes in my Form, each of which
displays content dependent on which entry is selected in a list box on the
same form. The code that does this is below. (The three "Desc" text boxes are
the large ones; the others are much smaller (50 characters at max). My list
of course references all 11 columns (including the ID column).)
The Data Type of all the referred columns in my Database table is Memo, as
the three large text boxes must display up to approximately 500 characters.
However, although I can input the data into the table just fine, when I go
back to my Form and select entries in the list, I find that the large text
boxes are limiting the number of characters they display, cutting off parts
of the required information. They seem to display only the first 255
characters, when I need them to display up to 500 characters.
Having read around, I cannot find any solution. It seems people keep
suggesting to change the Data Type to Memo, which I had done before I noticed
this problem. I suspect, though, the problem lies in the way data is directed
into the text boxes (i.e. with the code below). Does my code truncate my
data? And is there any way to stop it from doing so?
Many thanks for your help.
~Maruno
Private Sub lstDMList_Click()
If Not IsNull(Me!lstDMList) Then
Me!txtDM = Me!lstDMList.Column(1)
Me!txtName1 = Me!lstDMList.Column(2)
Me!txtType1 = Me!lstDMList.Column(3)
Me!txtDesc1 = Me!lstDMList.Column(4)
Me!txtName2 = Me!lstDMList.Column(5)
Me!txtType2 = Me!lstDMList.Column(6)
Me!txtDesc2 = Me!lstDMList.Column(7)
Me!txtName3 = Me!lstDMList.Column(8)
Me!txtType3 = Me!lstDMList.Column(9)
Me!txtDesc3 = Me!lstDMList.Column(10)
End If
End Sub
displays content dependent on which entry is selected in a list box on the
same form. The code that does this is below. (The three "Desc" text boxes are
the large ones; the others are much smaller (50 characters at max). My list
of course references all 11 columns (including the ID column).)
The Data Type of all the referred columns in my Database table is Memo, as
the three large text boxes must display up to approximately 500 characters.
However, although I can input the data into the table just fine, when I go
back to my Form and select entries in the list, I find that the large text
boxes are limiting the number of characters they display, cutting off parts
of the required information. They seem to display only the first 255
characters, when I need them to display up to 500 characters.
Having read around, I cannot find any solution. It seems people keep
suggesting to change the Data Type to Memo, which I had done before I noticed
this problem. I suspect, though, the problem lies in the way data is directed
into the text boxes (i.e. with the code below). Does my code truncate my
data? And is there any way to stop it from doing so?
Many thanks for your help.
~Maruno
Private Sub lstDMList_Click()
If Not IsNull(Me!lstDMList) Then
Me!txtDM = Me!lstDMList.Column(1)
Me!txtName1 = Me!lstDMList.Column(2)
Me!txtType1 = Me!lstDMList.Column(3)
Me!txtDesc1 = Me!lstDMList.Column(4)
Me!txtName2 = Me!lstDMList.Column(5)
Me!txtType2 = Me!lstDMList.Column(6)
Me!txtDesc2 = Me!lstDMList.Column(7)
Me!txtName3 = Me!lstDMList.Column(8)
Me!txtType3 = Me!lstDMList.Column(9)
Me!txtDesc3 = Me!lstDMList.Column(10)
End If
End Sub