D
Davo78
Hi All
I am trying to trim a leading space at the start of each field in my
"Customers" table which is an Exel spreadsheet imported using
"TransferSpreadsheet"
After researching the internet I have been able to get this to work using,
for example: CustomerName: Trim([F3]) in the Field line of a select query
("CustomersTrimQry").
My promlem is that when I append the data from "CustomersTrimQry" to the
"Customers" table the space returns.
Prior to using trim I ran 3 queries from the original "CustomersImport"
table, "CustomersdeleteQry" (removes null records), "CustomersAppendQry"
(appends to 'Customers" table) and "CustomersImportClearQry" (deletes all
records in "CustomersImport" table.
When using trim I still use the 3 queries but the "CustomersAppendQry" is
based on the "CustomersTrimQry".
Can anyone explain why I get the leading space when I append the data to
"Customers" table or advise me of another approach to the objective.
Thanks in advance
Davo
I am trying to trim a leading space at the start of each field in my
"Customers" table which is an Exel spreadsheet imported using
"TransferSpreadsheet"
After researching the internet I have been able to get this to work using,
for example: CustomerName: Trim([F3]) in the Field line of a select query
("CustomersTrimQry").
My promlem is that when I append the data from "CustomersTrimQry" to the
"Customers" table the space returns.
Prior to using trim I ran 3 queries from the original "CustomersImport"
table, "CustomersdeleteQry" (removes null records), "CustomersAppendQry"
(appends to 'Customers" table) and "CustomersImportClearQry" (deletes all
records in "CustomersImport" table.
When using trim I still use the 3 queries but the "CustomersAppendQry" is
based on the "CustomersTrimQry".
Can anyone explain why I get the leading space when I append the data to
"Customers" table or advise me of another approach to the objective.
Thanks in advance
Davo