concantinate number with decimal places

D

deb

TL: [TLNoPrefix] & "-" & [TLNo] is a field in my query.

TLNoPrefix is text and TLNo is a number.
How can I show TLNo with 4 decimal places?
 
J

Jerry Whittle

TL: [TLNoPrefix] & "-" & Format([TLNo], "0.0000")

However if TLNo has more than 4 decimal places, it might get rounded up or
down.
 
B

Brendan Reynolds

deb said:
TL: [TLNoPrefix] & "-" & [TLNo] is a field in my query.

TLNoPrefix is text and TLNo is a number.
How can I show TLNo with 4 decimal places?


The Format$() function should do it. Something like ...

TL:[TlNoPrefix] & "-" & Format$([TlNo], "0.0000")
 

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

Similar Threads

basOrderBy 1
validation help 8
no current record 1
If is null 1
If help 2
If code works initially 1
force dirty 2
make a record dirty 11

Top