Could anyone suggest a reason why writing an SQL command "create table" in visual basic would successfully create a table *but* change the way the data is stored in the fields?
For example, if I created a table with one field:
And enter the data: "Test"
Why then would the whole 20 spaces be used, the first four with the letters I entered, and the rest with 16 blank spaces I never did? If I highlight them and delete them, then rexamine the record, they are still there.
Any suggestions appreciated!
For example, if I created a table with one field:
Code:
strSQL = "CREATE TABLE whatever ([MyField] char(20));"
DoCmd.RunSQL strSQL
Why then would the whole 20 spaces be used, the first four with the letters I entered, and the rest with 16 blank spaces I never did? If I highlight them and delete them, then rexamine the record, they are still there.
Any suggestions appreciated!
