Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checkboxes published in Word 1

Status
Not open for further replies.

malauton

Technical User
Dec 30, 2002
8
GB
Hi
Hope soemone can help, Im sure i read here a year or so ago about getting checkboxes to appear when publishing a report in word. If so could some one point me in the right direction or help me out
Im sure the check box was replaced by a symbol...I cannot for the life of me remember

Help
malauton
 
The usual thing is to use Yes or No (True / False etc):

[tt]IIf(Me.chkCheck,"Yes","No")[/tt]
 
Thanks Remou, Thats a way I am not familair with, I could do that by changing the checkbox to text box in the table properties, trouble is you get a whole array of yes and nos.
this makes quick scanning of the deata a bit haphazard. It would be ok if I could just have yes and omit the no's..any Ideas

malauton
 
The idea is to use a textbox in the report, not in the table. Set the Control Source of the textbox to reference your checkbox field, like so:

[tt]=IIf(Me.chkCheck,"Yes","")[/tt]

chkCheck should be changed to the name of the checkbox field.

The above example will not print No.
 
Thankx again Remou,
I tried that last night after your last post.
Access keeps putting squqre bracjkets arount the Me and returning a #Name? error

I put it in like yousaid I understand the code to be "looking at this checkbox on the current report if its true print yes if its false dont print"
but access concverts it to

=IIf([Me].[RRSClessonewee],Yes,"")

thganks for your support and time

Malauton
 
Remou

Got it to work!!!!

used =IIf([RRSClessonewee],"Yes","")

just prints the yes now for the checkbox true value thanks

malauton
 
My fault, sorry :-(
Glad you figured it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top