Hi Lyn
Ok this is what is in my text box at present:
="Thank you for your recent enquiry - we have pleasure in enclosing " &
(If([Quantity])=1,"a leaflet and a preview copy",[Quantity] & " leaflets
and preview copies") & "of rest of text etc till another"
Thanks for your help, this one has been driving me nuts for two hours -
Ok.. .then is everything in your statement contained on one line or are
there line breaks? What's on the left side of your equal sign?
--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security:
www.ltcomputerdesigns.com/Security.htm
Jeff Conrad's Big List:
www.ltcomputerdesigns.com/JCReferences.html
In VBA
Alex
Are you doing this in the Query grid or in VBA?
--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security:
www.ltcomputerdesigns.com/Security.htm
Jeff Conrad's Big List:
www.ltcomputerdesigns.com/JCReferences.html
Lynn, I have tried that earlier and I got "Wrong number of
arguements error!
Change If([Quantity]..... to IIF([Quantity].....
--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security:
www.ltcomputerdesigns.com/Security.htm
Jeff Conrad's Big List:
www.ltcomputerdesigns.com/JCReferences.html
Hi I using the following syntax in a text box on an Access report.
I am getting and error message, either syntax or quote marks.
Can some kind person tell me what is wrong please- thanks
="Thank you for your recent enquiry - we have pleasure in
enclosing " & (If([Quantity])=1,"a leaflet and a preview copy",
[Quantity] & " leaflets and preview copies") & "of more text etc.
"