Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 31st, 2003, 01:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default How to ...

I have a report I am creating. I need to put a semi-colon(;) before a field name. How do I do in design view or what do I do so my report can display the semicolon before the field.

Thanks,
Judy
 
Old July 31st, 2003, 02:03 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In the control source for the text box it would be along the lines of:

Iif(isnull([FieldName]),"","; " & [FieldName])

You would need to replace FieldName with the actual name of the field you are wanting to display in the textbox after the semi-colon.

HTH,

Beth M
 
Old July 31st, 2003, 02:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

Hi Beth,

It's giving me an error. The error message is:

Extra ) in query expression 'Iif (isnull([COLAEndDAte]),"","; " & [COLAEndDAte])'

I tried removing the parenthesis but I still get an error.
What do you think I am doing wrong.

Thanks,
Judy
 
Old July 31st, 2003, 02:57 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I left off the equal sign in the beginning. It should be:

=Iif (isnull([COLAEndDAte]),"","; " & [COLAEndDAte])

Beth M
 
Old July 31st, 2003, 03:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

Hi Beth,

Now the report is displaying but I get a #Error displayed on the field COLAEndDate. Does this have anything to do with this field being a date field?

Thanks,
Judy
 
Old July 31st, 2003, 03:12 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is the name of your text box also called COLAEndDate? If so, change it to be txtCOLAEndDate and try again.
 
Old July 31st, 2003, 03:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

Yep, it's the same name. I changed it and it worked. Thanks for the help.

Judy
 
Old July 31st, 2003, 03:26 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My pleasure.

Beth M









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.