D
Dave Meckley
I'm using VB6 to connect to an Access database. When designing a table in
Access, if I set a text field size to a value, the data returned from a
query from that column has a length of only the data in the field. Using
DDL to alter the field size results in data that is always the length of the
columns field size. For example, when initially setting a field size of a
column to 10, if the data in that column only has a length of four, the
returned value is "ABCD". When altering the field size via DDL to 20, the
data returned for that same row will now always have a length of 20.( "ABCD
"). Is there any way to eliminate the spaces Access adds to 'fill up' the
field size? An exapmple of the DDL statement I use would be: "ALTER TABLE
Parts ALTER Description CHAR(20)"
Thanks in advance for any replys!
Access, if I set a text field size to a value, the data returned from a
query from that column has a length of only the data in the field. Using
DDL to alter the field size results in data that is always the length of the
columns field size. For example, when initially setting a field size of a
column to 10, if the data in that column only has a length of four, the
returned value is "ABCD". When altering the field size via DDL to 20, the
data returned for that same row will now always have a length of 20.( "ABCD
"). Is there any way to eliminate the spaces Access adds to 'fill up' the
field size? An exapmple of the DDL statement I use would be: "ALTER TABLE
Parts ALTER Description CHAR(20)"
Thanks in advance for any replys!