Functions

G

Garry

Hi

I need to export a query to a text file that contains both alpha and numeric
fields

How can I force the numeric fields to text as to get "123","ABC"

thanks, Garry
 
A

Allen Browne

In query design view, instead of a field such as Amount, type an expresion
like this into the Field row:
Trim(Str([Amount]))

Access should recognise this as a Text type field, and so add the quotes
when you export it.
 
G

Garry

Just the job

Thankyou


Allen Browne said:
In query design view, instead of a field such as Amount, type an expresion
like this into the Field row:
Trim(Str([Amount]))

Access should recognise this as a Text type field, and so add the quotes
when you export it.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Garry said:
Hi

I need to export a query to a text file that contains both alpha and
numeric fields

How can I force the numeric fields to text as to get "123","ABC"

thanks, Garry
 

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