IF statement problem

P

projectmergeleader

I am writing a mail merge project to create a number of invoices from a
database created in access. I need to check a number that I obtained using a
count statement to see if it is between certain boundaries. When I try to do
this it does not work and the else staement is always executed. It may be
because the number is stored as text but even direct comparison doesn't work.

Also I need to round a number down to the nearest 0.01(its a price). Does
anyone know how to achieve this?

Thanks in advance,

S
 
P

Peter Jamieson

What does the code in your IF field look like at the moment?
Also I need to round a number down to the nearest 0.01(its a price). Does

Have you tried the usualy formatting switches, or is the problem rounding
rather than truncation?
 
P

projectmergeleader

I am a fool the reason it wasn't working was that that it went

{IF {{MERGEFIELD"CountOfMessage"}} <= 500
^^
too many brackets

Regarding my other problem it is a rounding problem but since it is going to
be rounded down it could be truncated. I just don't know how to do it. Also I
need to add digits to some numbers, for example, if i have 2 i need 2.00.
Maybe this could be done with truncation as well.

Thanks,

S
 

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