CONCATENATE

B

BB

I have concatenated several text fields in a query to update a table. When I
run the query the text fields that contains blanks at the end is suppressed.
Is there a funtion that will allow the query to retain the blanks?
 
K

KARL DEWEY

In query crieria include Or Null and it should work.

If not then post the SQL of your query -- Open in design view, click on VIEW
- SQL View, highlight all, copy, and paste in a post.
 
J

John W. Vinson

I have concatenated several text fields in a query to update a table. When I
run the query the text fields that contains blanks at the end is suppressed.
Is there a funtion that will allow the query to retain the blanks?

Are you trying to store multiple different field values redundantly in a
(non-atomic, composite) field? If so... WHY!? That's a *really bad idea*.

The blanks are being suppressed because Access Text fields are what a SQL
developer would call "nvchar" - trailing blanks all get trimmed off before the
field is stored. If you store "ABC "
into a text field, its size will be 3 bytes and it will contain "ABC".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top