How to change Number to Text

F

fruitchunk

I have this SQL statement

select abcdoc.*
from abcdoc, order
where order.doc_no = 10599
and order.doc_no || '' = abcdoc.record_key
and abcdoc.filename = 'order'

When I enter it in SQL view in access i get an error "invalid use of
vertical bars in query expression" I guess because doc_no is stored as
numbers & record_key is stored as text.

Please help.
 
J

Jerry Whittle

|| ''

Pipes || are how you concantanate data in Oracle. In Access you use the
ampersand & character. Even then you would need the || or &, along with the
", on both side of doc_no.

Try this instead:

and CStr(order.doc_no) = abcdoc.record_key
 

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