Check Box on a Report

  • Thread starter Thread starter gemini2
  • Start date Start date
G

gemini2

I have a query the have certain condition code. I'm creating a repor
that I have to put a check box on. However I only want the check bo
to display on the the report when the condition_id on the record i
in(14,15,16). I tried coding the following in the expressio
builder but it didn't work
IIf(qryCondition_Past!condition_i
in(14,15,16)chkOutstanding.visible=true)
What am I doing wrong
 
Put your code in the form section's Format event:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
chkOutstanding.Visible = (condition_id = 14 or condition_id = 15 or
condition_id = 16)
End Sub

....assuming of course that condition_id is part of the report's dataset.

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia

Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
 
I quess I should had mention that I was using one query for the repor
and another query that determine if the check box should be checked o
not. I tried combining the two query but when I did I lost data.
was thinking about trying a union join thereby, maintaining all th
data. Is there a easier way to use two diff source on a report an
then code what you gave in your reply
 

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

Check box in report 2
sum of check box 2
Checking a box on a report 1
Check Box query issue 3
Check Box 4
IIf statement and check boxes 4
Nested IIf doesn't work 18
Query to report question. 4

Back
Top