G
Guest
Hi all,
I've searched everywhere and I can't find an answer, so I'm posting here.
I'm sure someone can point me in the right direction.
I'm trying to set the column width of a 2-column combo box. I'm doing this
at Form_Load as I don't know ahead of time the column size I'll need.
I'm using a query as the source for the combo box. I want the firts column
to only be as wide as the longest entry in the column.
I'm using a Max(Len(...)) select statement to get the maximum string length
in the column. And I know the font name, size of the combo box.
That's where I'm stuck. I need to find a way to convert that information
into inches or twips, and I can't figure out how. If I can get this work,
I'm going to be using it all over the place.
Any suggestions? I'll appreciate it.
Thanks,
Jay
I've searched everywhere and I can't find an answer, so I'm posting here.
I'm sure someone can point me in the right direction.
I'm trying to set the column width of a 2-column combo box. I'm doing this
at Form_Load as I don't know ahead of time the column size I'll need.
I'm using a query as the source for the combo box. I want the firts column
to only be as wide as the longest entry in the column.
I'm using a Max(Len(...)) select statement to get the maximum string length
in the column. And I know the font name, size of the combo box.
That's where I'm stuck. I need to find a way to convert that information
into inches or twips, and I can't figure out how. If I can get this work,
I'm going to be using it all over the place.
Any suggestions? I'll appreciate it.
Thanks,
Jay